import type { DashboardStats } from "@dci/core";
import { Metric, MetricCell, MetricRow } from "@/components/ui/metric";
import { fmtInt, fmtPct, splitMw } from "@/lib/format";
function MwMetric({ mw, label, note, loading }: { mw: number | null | undefined; label: string; note?: string; loading?: boolean }) {
const s = splitMw(mw);
return ;
}
export function DashboardMetrics({ stats, loading }: { stats: DashboardStats | null; loading?: boolean }) {
const s = stats;
const coverage = s ? fmtPct(s.mwCoverage) : null;
return (
);
}