import { Flame } from "lucide-react"; import { cn } from "@/lib/utils"; import type { Giocatore } from "@/lib/crapp-data"; import { serieGiocatore, serieMigliore } from "@/lib/serie"; import { Barra } from "@/components/motion/Barra"; import { Reveal } from "@/components/motion/Reveal"; /** Griglia completa delle serie di presenza (profilo). */ export function SerieGriglia({ g }: { g: Giocatore }) { const serie = serieGiocatore(g); return (
{serie.map((s, i) => { const Icon = s.def.icon; const attiva = s.valore > 0; return (

{s.def.label}

{s.def.descrizione}

{s.valore}

{s.prossimo ? `${s.valore}/${s.prossimo} ยท ` : ""} {s.messaggio}

); })}
); }