'use client'; import { Button } from '@/ui/Button'; import { Icon } from '@/ui/Icon'; import { Stack } from '@/ui/Stack'; import { Surface } from '@/ui/Surface'; import { Text } from '@/ui/Text'; import { ArrowDownLeft, ArrowUpRight, History, Wallet } from 'lucide-react'; interface Transaction { id: string; type: 'deposit' | 'withdrawal' | 'sponsorship' | 'prize'; formattedAmount: string; description: string; formattedDate: string; } interface WalletSummaryPanelProps { formattedBalance: string; currency: string; transactions: Transaction[]; onDeposit: () => void; onWithdraw: () => void; } export function WalletSummaryPanel({ formattedBalance, currency, transactions, onDeposit, onWithdraw }: WalletSummaryPanelProps) { return ( {/* Background Pattern */} AVAILABLE BALANCE {formattedBalance} {currency} RECENT TRANSACTIONS {transactions.length === 0 ? ( No recent transactions. ) : ( transactions.map((tx) => { const isCredit = tx.type === 'deposit' || tx.type === 'sponsorship'; return ( {tx.description} {tx.formattedDate} {tx.formattedAmount} ); }) )} ); }