"use client"; import type { ClientView } from "@/lib/client-view"; import { ApproveButton } from "@/components/client/ApproveButton"; type Task = ClientView["phases"][number]["tasks"][number] & { phaseTitle: string; }; const COLUMNS: { id: "todo" | "in_progress" | "done"; label: string; dotClass: string; headerClass: string }[] = [ { id: "todo", label: "Da fare", dotClass: "bg-[#d4d4d8]", headerClass: "text-[#71717a]" }, { id: "in_progress", label: "In corso", dotClass: "bg-[#DEF168]", headerClass: "text-[#1A463C]" }, { id: "done", label: "Fatto", dotClass: "bg-[#1A463C]", headerClass: "text-[#1A463C]" }, ]; function TaskCard({ task, token }: { task: Task; token: string }) { return (
{task.phaseTitle}
{task.title}
{task.description && ({task.description}
)} {task.deliverables.length > 0 && (Nessun task
)}