import 'package:flutter/material.dart';

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


class WalletTopUpInfoChip extends StatelessWidget {
  final String label;
  final String value;

  const WalletTopUpInfoChip({
    super.key,
    required this.label,
    required this.value,
  });

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);
    final dimensions = AppDimensions();

    return Container(
      padding: EdgeInsets.all(dimensions.paddingMedium),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(dimensions.borderRadiusSmall),
        border: Border.all(color: theme.colorScheme.outlineVariant),
        color: theme.colorScheme.surfaceContainerHighest.withValues(alpha: 0.4),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            label,
            style: theme.textTheme.labelMedium?.copyWith(
              color: theme.colorScheme.onSurfaceVariant,
            ),
          ),
          const SizedBox(height: 4),
          Text(
            value,
            style: theme.textTheme.titleMedium?.copyWith(
              fontWeight: FontWeight.w600,
            ),
          ),
        ],
      ),
    );
  }
}
