import 'package:flutter/material.dart';
import '../../widgets/native_ad_widget.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 Column(
      children: [
        const NativeAdWidget(key: ValueKey('sms_scan_loading_ad')),
        const SizedBox(height: 48),
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 16.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              CircularProgressIndicator(
                color: Theme.of(context).colorScheme.primary,
              ),
              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,
              ),
            ],
          ),
        ),
      ],
    );
  }
}
