"use client"; import { useTranslations } from "next-intl"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "../../shadcnui"; type CommonEditorDiscardDialogProps = { open: boolean; onOpenChange: (open: boolean) => void; onDiscard: () => void; }; export function CommonEditorDiscardDialog({ open, onOpenChange, onDiscard }: CommonEditorDiscardDialogProps) { const t = useTranslations(); return ( {t(`ui.dialogs.unsaved_changes_title`)} {t(`ui.dialogs.unsaved_changes_description`)} {t(`ui.buttons.cancel`)} {t(`ui.dialogs.unsaved_changes_discard`)} ); }