import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from '@/components/ui/alert-dialog'; import { Trash2 } from 'lucide-react'; import { PropsWithChildren } from 'react'; import { useTranslation } from 'react-i18next'; interface IProps { title?: string; onOk?: (...args: any[]) => any; onCancel?: (...args: any[]) => any; } export function ConfirmDeleteDialog({ children, title, onOk, }: IProps & PropsWithChildren) { const { t } = useTranslation(); return ( {children} {title ?? t('common.deleteModalTitle')} {/* This action cannot be undone. This will permanently delete your account and remove your data from our servers. */} {t('common.cancel')} {t('common.ok')} ); }