import { Flame } from "lucide-react"; import { cn } from "@/lib/utils"; import { Card } from "@/components/crapp/ui-bits"; 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}

); })}
); } /** Riepilogo compatto per la home. */ export function SerieHome({ g }: { g: Giocatore }) { const top = serieMigliore(g); const Icon = top.def.icon; return (

Serie {top.def.label.toLowerCase()}: {top.valore}

{top.messaggio}

{serieGiocatore(g).map((s) => (

{s.valore}

{s.def.label}

))}
); }