interface Props { label: string; value: string; unit?: string; delta?: { value: string; positive?: boolean | null }; hint?: string; } export function KpiCard({ label, value, unit, delta, hint }: Props) { const deltaColor = delta?.positive === true ? "#0a7a3a" : delta?.positive === false ? "#b3261e" : "#5b6066"; return (
{label}
{value} {unit ? ( {unit} ) : null}
{delta ? (
{delta.value}
) : null} {hint ? (
{hint}
) : null}
); }