import 'package:flutter/material.dart';
import '../../widgets/themed_text.dart';
import '../../l10n/app_localizations.dart';

class ScanLoadingWidget extends StatelessWidget {
  const ScanLoadingWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Padding(
        padding: const EdgeInsets.symmetric(horizontal: 16.0),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            CircularProgressIndicator(
              color: Theme.of(context).colorScheme.primary,
            ),
            const SizedBox(height: 16),
            ThemedText(
              AppLocalizations.of(context).scanningMessages,
              forceDark: true,
              textAlign: TextAlign.center,
            ),
            const SizedBox(height: 8),
            ThemedText(
              AppLocalizations.of(context).findingSubscriptions,
              opacity: 0.7,
              forceDark: true,
              textAlign: TextAlign.center,
            ),
          ],
        ),
      ),
    );
  }
}
