import 'package:flutter/material.dart';

import 'package:pweb/controllers/dashboard/balance/source_actions.dart';
import 'package:pweb/pages/dashboard/buttons/balance/actions/bar.dart';


class WalletSourceActions extends StatelessWidget {
  final String walletRef;
  final VoidCallback onAddFunds;

  const WalletSourceActions({
    super.key,
    required this.walletRef,
    required this.onAddFunds,
  });

  @override
  Widget build(BuildContext context) {
    const controller = BalanceSourceActionsController();
    final state = controller.wallet(
      context: context,
      walletRef: walletRef,
      onAddFunds: onAddFunds,
    );

    return BalanceActionsBar(state: state);
  }
}
