'use client'; import { WalletSummaryPanel } from '@/components/leagues/WalletSummaryPanel'; import type { LeagueWalletViewData } from '@/lib/view-data/leagues/LeagueWalletViewData'; import { Box } from '@/ui/Box'; import { Button } from '@/ui/Button'; import { Container } from '@/ui/Container'; import { Heading } from '@/ui/Heading'; import { Icon as UIIcon } from '@/ui/Icon'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Download } from 'lucide-react'; interface WalletTemplateProps { viewData: LeagueWalletViewData; onWithdraw?: (amount: number) => void; onExport?: () => void; mutationLoading?: boolean; } export function LeagueWalletPageClient({ viewData, onExport }: WalletTemplateProps) { // Map transactions to the format expected by WalletSummaryPanel const transactions = viewData.transactions.map(t => ({ id: t.id, type: t.type === 'withdrawal' ? 'debit' : 'credit' as 'credit' | 'debit', amount: parseFloat(t.formattedAmount.replace(/[^0-9.-]+/g, '')), description: t.description, date: t.formattedDate, })); return ( {/* Header */} League Wallet Manage your league's finances and payouts {}} // Not implemented for leagues yet onWithdraw={() => {}} // Not implemented for leagues yet /> {/* Alpha Notice */} Alpha Note: Wallet management is demonstration-only. Real payment processing and bank integrations will be available when the payment system is fully implemented. ); }