import { addPhase, addTask, updateTaskStatus, updatePhaseStatus, } from "@/app/admin/clients/[id]/actions"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import type { ClientFullDetail } from "@/lib/admin-queries"; type Props = { phases: ClientFullDetail["phases"]; clientId: string; }; const taskStatusOptions = [ { value: "todo", label: "Da fare" }, { value: "in_progress", label: "In corso" }, { value: "done", label: "Fatto" }, ]; const phaseStatusOptions = [ { value: "upcoming", label: "In arrivo" }, { value: "active", label: "Attiva" }, { value: "done", label: "Completata" }, ]; export async function PhasesTab({ phases, clientId }: Props) { return (
Nessuna fase ancora.
)} {phases.map((phase) => (