import { t } from "../i18n"; import { Dialog, DialogProps } from "./Dialog"; import { ToolButton } from "./ToolButton"; import "./ConfirmDialog.scss"; interface Props extends Omit { onConfirm: () => void; onCancel: () => void; confirmText?: string; cancelText?: string; } const ConfirmDialog = (props: Props) => { const { onConfirm, onCancel, children, confirmText = t("buttons.confirm"), cancelText = t("buttons.cancel"), className = "", ...rest } = props; return ( {children}
); }; export default ConfirmDialog;