import { destroy } from '@/actions/App/Http/Controllers/Settings/LabelController'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { type Label } from '@/types/label'; import { Form } from '@inertiajs/react'; interface DeleteLabelDialogProps { label: Label; open: boolean; onOpenChange: (open: boolean) => void; onSuccess?: () => void; } export function DeleteLabelDialog({ label, open, onOpenChange, onSuccess, }: DeleteLabelDialogProps) { return ( Delete Label Are you sure you want to delete "{label.name}"? This action cannot be undone.
{ onOpenChange(false); onSuccess?.(); }} > {({ processing }) => ( )}
); }