import 'package:flutter/material.dart';

import 'package:pweb/utils/cooldown_format.dart';

import 'package:pweb/generated/i18n/app_localizations.dart';


class CooldownHint extends StatelessWidget {
  final int seconds;

  const CooldownHint({super.key, required this.seconds});

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);
    final l10n = AppLocalizations.of(context)!;
    return Text(
      l10n.payoutCooldown(formatCooldownSeconds(seconds)),
      style: theme.textTheme.bodySmall?.copyWith(
        color: theme.colorScheme.onSurfaceVariant,
      ),
      textAlign: TextAlign.center,
    );
  }
}
