'use client'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Coins, CreditCard, Gift, TrendingUp } from 'lucide-react'; import { formatRecordTime } from '@/lib/credit-records-store'; type CreditRecord = { id: string; amount: number; description: string; createdAt: string; balanceAfter: number; }; type CreditsTabProps = { creditsBalance: number; creditRecords: CreditRecord[]; }; export default function CreditsTab({ creditsBalance, creditRecords }: CreditsTabProps) { const profile = { credits_balance: creditsBalance }; return (
当前余额
{profile.credits_balance} 积分
{pkg.amount}
积分
¥{pkg.price}
暂无积分记录
{tx.description}
{formatRecordTime(tx.createdAt)}
余额 {tx.balanceAfter}