import type { ReactNode } from "react"; import { Info } from "lucide-react"; import { toneCard, toneGlow, toneIcon, type MetricToneKey } from "./tokens"; interface DashboardMetricCardProps { title: string; value: string; secondary?: string; infoText?: string; icon: ReactNode; tone: MetricToneKey; } /** * Top-row metric card. Tone drives the icon container color only — * card background and text always come from design tokens. */ export function DashboardMetricCard({ title, value, secondary, infoText, icon, tone, }: DashboardMetricCardProps) { return (

{title}

{infoText && ( )}

{value}

{secondary && (

{secondary}

)}
{icon}
); }