import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { ProxyInfo } from "@/lib/pb/common" import { formatBytes } from "@/lib/utils" export function ProxyTrafficOverview({ proxyInfo }: { proxyInfo: ProxyInfo }) { const todayTotal = Number(proxyInfo.todayTrafficIn) + Number(proxyInfo.todayTrafficOut) const historyTotal = Number(proxyInfo.historyTrafficIn) + Number(proxyInfo.historyTrafficOut) return (
今日总流量
{formatBytes(todayTotal)}
历史总流量
{formatBytes(historyTotal)}
) }