/** * Custom destructive-action confirm dialog, styled like a SweetAlert prompt * (centered icon, title, description, cancel/confirm) but built on the * WordPress core Modal primitive — no new dependency required. */ import { Modal, Button } from '@wordpress/components'; import { AlertTriangle } from 'lucide-react'; interface ConfirmDialogProps { title: string; description: string; confirmLabel: string; cancelLabel: string; onConfirm: () => void; onCancel: () => void; } export default function ConfirmDialog( { title, description, confirmLabel, cancelLabel, onConfirm, onCancel, }: ConfirmDialogProps ) { return (

{ title }

{ description }

); }