"use client"; interface Props { stats: { nodes: number; edges: number; files?: number; clusters?: number } | null; } function StatBadge({ value, label, color }: { value: number; label: string; color: string }) { return (
{value.toLocaleString()} {label}
); } export function StatsPanel({ stats }: Props) { if (!stats) { return (
{[1, 2].map((i) => (
))}
); } return (
); }