import { useState, type ReactNode } from "react"; import { cn } from "@/lib/utils"; import { formatData } from "@/lib/crapp-data"; import { microcopyObiettivo, progressoObiettivo, type ObiettivoSquadra } from "@/lib/obiettivi"; import { Barra } from "@/components/motion/Barra"; import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "@/components/ui/drawer"; function Elenco({ titolo, voci, segno }: { titolo: string; voci: string[]; segno: string }) { return (
{titolo}
{titolo}
{testo}
Stato attuale
{fatto ? "Completato" : "In corso"}{o.valore} su {o.target}{" "} {o.unita}
{pct}%{o.scadenza ? ` · entro il ${formatData(o.scadenza)}` : ""}
{microcopyObiettivo(o)}
{o.impatto}