import 'package:flutter/material.dart';
import '../../theme/app_colors.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 Padding(
      padding: const EdgeInsets.symmetric(horizontal: 16.0),
      child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const CircularProgressIndicator(
              valueColor: AlwaysStoppedAnimation<Color>(AppColors.primaryColor),
            ),
            const SizedBox(height: 16),
            ThemedText(
              AppLocalizations.of(context).scanningMessages,
              forceDark: true,
            ),
            const SizedBox(height: 8),
            ThemedText(
              AppLocalizations.of(context).findingSubscriptions,
              opacity: 0.7,
              forceDark: true,
            ),
          ],
        ),
      ),
    );
  }
}
