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 { __ } from '@/utils/i18n'; 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\n action cannot be undone.', )}
{ onOpenChange(false); onSuccess?.(); }} > {({ processing }) => ( )}
); }