import { Card, Col, Row, Space, Statistic, Tag, Typography, theme } from 'antd'; import { useEffect, useMemo, useState } from 'react'; import { dashboardApi } from '../api/modules'; const { Title, Text } = Typography; interface PlatformStats { accounts: number; tasks: number; success: number; failed: number; } interface DashboardStats { douyu: PlatformStats & { cookies: number; }; huya: PlatformStats & { goods: number; rechargeGoods: number; }; } const EMPTY_STATS: DashboardStats = { douyu: { accounts: 0, tasks: 0, success: 0, failed: 0, cookies: 0, }, huya: { accounts: 0, tasks: 0, success: 0, failed: 0, goods: 0, rechargeGoods: 0, }, }; function StatCard({ title, value, color, loading, }: { title: string; value: number; color?: string; loading?: boolean; }) { return (