import 'package:design_system/design_system.dart';
import 'package:flutter/material.dart';

class PaymentStatsCard extends StatelessWidget {
  const PaymentStatsCard({
    super.key,
    required this.icon,
    required this.iconColor,
    required this.label,
    required this.amount,
  });

  final IconData icon;
  final Color iconColor;
  final String label;
  final String amount;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(UiConstants.space4),
      decoration: BoxDecoration(
        color: UiColors.white,
        borderRadius: BorderRadius.circular(UiConstants.radiusBase),
        boxShadow: <BoxShadow>[
          BoxShadow(
            color: UiColors.black.withValues(alpha: 0.05),
            blurRadius: 2,
            offset: const Offset(0, 1),
          ),
        ],
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Row(
            children: <Widget>[
              Icon(icon, size: 16, color: iconColor),
              const SizedBox(width: UiConstants.space2),
              Text(
                label,
                style: UiTypography.body3r.textSecondary,
              ),
            ],
          ),
          const SizedBox(height: UiConstants.space2),
          Text(
            amount,
            style: UiTypography.headline1m.textPrimary,
          ),
        ],
      ),
    );
  }
}
