import 'package:flutter/material.dart';

import 'package:pweb/pages/wallet_top_up/info_chip.dart';
import 'package:pweb/utils/dimensions.dart';

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


class WalletTopUpMeta extends StatelessWidget {
  final String assetLabel;
  final String walletId;
  final String? network;

  const WalletTopUpMeta({
    super.key,
    required this.assetLabel,
    required this.walletId,
    this.network,
  });

  @override
  Widget build(BuildContext context) {
    final loc = AppLocalizations.of(context)!;
    final dimensions = AppDimensions();

    return Wrap(
      spacing: dimensions.paddingLarge,
      runSpacing: dimensions.paddingLarge,
      children: [
        WalletTopUpInfoChip(label: loc.walletTopUpAssetLabel, value: assetLabel),
        if (network != null && network!.isNotEmpty)
          WalletTopUpInfoChip(label: loc.walletTopUpNetworkLabel, value: network!),
        WalletTopUpInfoChip(label: loc.walletId, value: walletId),
      ],
    );
  }
}
