import clsx from "clsx"; export interface StatTileProps { label: string; /** pre-formatted value, e.g. "34.57" or "2–21" */ value: string; /** rendered after the value, muted, e.g. "h" or "s" */ suffix?: string; /** small mono sub-line */ sub?: string; className?: string; } /** * Static stat tile for docs pages — visually identical to MetricCard but * server-rendered and string-valued (handles ranges like "2–21 s"). */ export default function StatTile({ label, value, suffix, sub, className, }: StatTileProps) { return (
{label} {value} {suffix && {suffix}} {sub && {sub}}
); }