import type { ReactNode } from 'react' import { Sparkline } from './Sparkline' import type { Summary } from '../lib/dev' function Card({ label, value, sub }: { label: string; value: string; sub?: ReactNode }) { return (
{label}
{value}
{sub &&
{sub}
}
) } export function StatCards({ s }: { s: Summary }) { const fmt = (n: number) => n.toLocaleString() return (
d.count)} />} />
) }