"use client"; import { useApp } from "@/contexts/AppContext"; interface StatCardProps { label: string; value: string; change?: string; changeColor?: string; valueColor?: string; } function StatCard({ label, value, change, changeColor = "text-green-500", valueColor }: StatCardProps) { const getValueColor = () => { if (valueColor) return valueColor; if (label.includes("APY") || label.includes("年化")) return "#ff6900"; return "#111827"; }; return (

{label}

{value}

{change && (

{change}

)}
); } export default function StatsCards() { const { t } = useApp(); return (
); }