import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { cn } from "@/lib/utils"; export function DeleteProjectDialog({ isOpen, onOpenChange, onConfirm, projectName, }: { isOpen: boolean; onOpenChange: (open: boolean) => void; onConfirm: () => void; projectName?: string; }) { return ( { e.preventDefault(); e.stopPropagation(); }} > {projectName ? ( <> {"Delete '"} {projectName} {"'?"} ) : ( "Delete Project?" )} Are you sure you want to delete this project? This action cannot be undone. ); }