import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; import { useTranslation } from "react-i18next"; type CustomAlertDialogProps = { open: boolean; onOpenChange?: (open: boolean) => void; title?: string; description?: string; confirm?: () => void; }; const CustomAlertDialog = ({ open, title, description, confirm, onOpenChange }: CustomAlertDialogProps) => { const { t } = useTranslation(); return ( {title} {description} {t("common.cancel")} { confirm && confirm(); }} > {t("common.confirm")} ); }; export default CustomAlertDialog;