import { convertI18nText, I18nText } from "@/common"; import React from "react"; import { Modal, Button } from "react-bootstrap"; import { useTranslation } from "react-i18next"; const ConfirmDialog: React.FC<{ onClose: () => void; onConfirm: () => void; title: I18nText; body: I18nText; }> = ({ onClose, onConfirm, title, body }) => { const { t } = useTranslation(); return ( {convertI18nText(title, t)} {convertI18nText(body, t)} ); }; export default ConfirmDialog;