"use client"; import { FolderKanban, MoreVertical, Trash2 } from "lucide-react"; import Link from "next/link"; import { useState } from "react"; import { deleteProjectAction } from "@/app/root/portfolio/actions"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; const copy = { editProject: "Bearbeiten", deleteProject: "Loeschen", }; export function PortfolioProjectActions({ projectId }: { projectId: string }) { const [confirmOpen, setConfirmOpen] = useState(false); return ( {copy.editProject} { event.preventDefault(); setConfirmOpen(true); }} > {copy.deleteProject} {copy.deleteProject} This action permanently removes the project from the portfolio.
); }