import { useCountUp } from '../../hooks/useCountUp' /** One big numeral with a mono label. The number counts up to the real value; a missing value stays "—". */ export default function Kpi({ label, value, format, sub, reduced, }: { label: string value: number | null format: (v: number) => string sub: string reduced: boolean }) { const text = useCountUp(value, format, reduced) return (
{label}
{sub}
) }