import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '@/components/ui/alert-dialog'; import { __ } from '@wordpress/i18n'; interface ConfirmDialogProps { open: boolean; onOpenChange: (open: boolean) => void; title: string; description: string; confirmLabel?: string; cancelLabel?: string; destructive?: boolean; disabled?: boolean; onConfirm: () => void; } const ConfirmDialog = ({ open, onOpenChange, title, description, confirmLabel = __('Confirm', 'allcoach'), cancelLabel = __('Cancel', 'allcoach'), destructive = true, disabled, onConfirm, }: ConfirmDialogProps) => ( {title} {description} {cancelLabel} {confirmLabel} ); export { ConfirmDialog };