import 'package:flutter/material.dart';

import 'package:pshared/models/ledger/account.dart';
import 'package:pweb/pages/dashboard/buttons/balance/source/card.dart';


class LedgerAccountCard extends StatelessWidget {
  final LedgerAccount account;
  final VoidCallback onAddFunds;
  final VoidCallback? onTap;

  const LedgerAccountCard({
    super.key,
    required this.account,
    required this.onAddFunds,
    this.onTap,
  });

  @override
  Widget build(BuildContext context) {
    return BalanceSourceCard.ledger(
      account: account,
      onTap: onTap ?? () {},
      onAddFunds: onAddFunds,
    );
  }
}
