import type { Dictionary } from "@/lib/i18n";
import { formatElapsed } from "@/lib/time";
import type { GlobalStats } from "@/lib/types";
type StatsPanelProps = {
showLead?: boolean;
stats: GlobalStats;
t: Dictionary;
};
export default function StatsPanel({ showLead = true, stats, t }: StatsPanelProps) {
const maxDistribution = Math.max(...Object.values(stats.winDistribution), 1);
return (
{t.statsLead} {t.distribution}{t.stats}
{showLead ?
{value}
{label}