import { ArrowDownLeft, ArrowUpRight, CreditCard, DollarSign, RefreshCw, Wallet, } from "lucide-react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Separator } from "@/components/ui/separator" import { mockTransactions, walletBalance } from "@/lib/mock-data" const typeLabels: Record = { topup: "充值", payment: "支付", income: "收入", withdrawal: "提现", refund: "退款", } const typeIcons: Record = { topup: ArrowDownLeft, payment: ArrowUpRight, income: ArrowDownLeft, withdrawal: ArrowUpRight, refund: ArrowDownLeft, } export default function WalletPage() { return (

钱包

账户余额

¥{walletBalance.toFixed(2)}

快捷充值
{[50, 100, 200, 500, 1000, 2000].map((amount) => ( ))}
交易记录 {mockTransactions.map((tx) => { const Icon = typeIcons[tx.type] const isIncome = tx.amount > 0 return (

{tx.description}

{new Date(tx.createdAt).toLocaleString("zh-CN")}

{isIncome ? "+" : ""}¥{Math.abs(tx.amount).toFixed(2)}

{typeLabels[tx.type]}
) })}
) }