/** * Styled confirmation modal — premium modal style. */ const ConfirmModal = ( { title = 'Confirm', message, confirmLabel = 'Confirm', cancelLabel = 'Cancel', isDestructive = false, onConfirm, onCancel, } ) => { return (
{ if ( e.target === e.currentTarget ) onCancel(); } }>

{ isDestructive ? ( ) : ( ) } { title }

{ message }

); }; export default ConfirmModal;