import type { Workflow } from "@/shared/api/types"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/shared/ui/alert-dialog"; import { Button } from "@/shared/ui/button"; type WorkflowDeleteDialogProps = { open: boolean; workflow: Workflow | null; onConfirm: (workflow: Workflow) => void; onOpenChange: (open: boolean) => void; }; export function WorkflowDeleteDialog({ open, workflow, onConfirm, onOpenChange, }: WorkflowDeleteDialogProps) { return ( Delete workflow? {workflow ? `Delete "${workflow.name}". This will stop all future triggers and remove the workflow permanently.` : "Delete this workflow."} ); }