import type { ReactNode } from "react"; /** KPI:图标软底 + 数字 + 说明 */ export default function AdminStatCard({ label, value, sub, hint, icon, color = "var(--accent)", soft = "var(--accent-soft)", }: { label: string; value: ReactNode; sub?: string; hint?: string; icon: ReactNode; color?: string; soft?: string; }) { return (
{icon}

{label}

{value} {sub ? ( {sub} ) : null}

{hint ?

{hint}

: null}
); }