import type { ProfileStats } from "../domain/types"; function pct(v: number | null | undefined): string { return v == null ? "—" : `${Math.round(v * 100)}%`; } export function ProfileStatsCard({ stats, title = "Моя статистика", }: { stats: ProfileStats; title?: string; }) { const o = stats.overall; // Серебристый рейтинг — пока игрок «новичок» (меньше min_games партий) или // не играл вовсе; золотой — только подтверждённый (как в топах). const provisional = o.score == null || o.games < stats.min_games; return (