import { useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Button, Dialog, DialogActions, DialogContent, DialogTitle, } from "@mui/material"; interface Props { open: boolean; title: string; message: string; onClose: () => void; onConfirm: () => void; } export const ConfirmViewer = (props: Props) => { const { open, title, message, onClose, onConfirm } = props; const { t } = useTranslation(); useEffect(() => { if (!open) return; }, [open]); return ( {title} {message} ); };