import type { Stats } from "@/lib/types"; export function StatsStrip({ stats }: { stats: Stats | null }) { const item = (label: string, value: number | null) => ( {label} {value === null ? "-" : value} ); return (
{item("Runs", stats?.runs ?? null)} · {item("Golden", stats?.golden ?? null)} · {item("Flagged", stats?.flagged ?? null)}
); }