export interface StatProps { value: string; label: string; /** Where the figure came from — a query, a window, a report. */ source?: string; className?: string; } export function Stat({ value, label, source, className }: StatProps) { return (
{label} {value} {source !== undefined && {source}}
); }