export interface StatProps { value: string; label: string; /** Who produced the figure. Optional in the API, required by the pack. */ source?: string; className?: string; } /** * A figure on the paper, with no tile around it: a mono label, the number in * the display face, and the source underneath in the same block. `source` is * optional only because the spine's shape is identical in every kit — in this * pack a claim with no source in the same block is a ban. */ export function Stat({ value, label, source, className }: StatProps) { return (
{label} {value} {source !== undefined && {source}}
); }