import { useTranslations } from "@/i18n/compat/client"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; interface ThemedAlertDialogProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; title: string; } const ThemeModal = ({ isOpen, onClose, onConfirm, title, }: ThemedAlertDialogProps) => { const t = useTranslations("themeModal.delete"); return ( e.stopPropagation()}> {t("title")} {t.raw("description").split("{title}")[0]} {title} {t.raw("description").split("{title}")[1]} {t("cancelText")} { e.stopPropagation(); onConfirm(); }} className="bg-red-600 hover:bg-red-700 text-white focus:ring-red-600 border-none" > {t("confirmText")} ); }; export default ThemeModal;