import Box from '@mui/material/Box' import Button from '@mui/material/Button' import CircularProgress from '@mui/material/CircularProgress' import Modal from '@mui/material/Modal' import _identity from 'lodash/identity' import React, { FC } from 'react' interface Props { message: string; loading?: boolean; hideCancelBtn?: boolean; onClose?: () => void; onConfirm?: () => void; } const style: React.CSSProperties = { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', minWidth: 480, backgroundColor: '#e3e3e3', border: '1px solid white', outline: 'none', padding: '14px', maxHeight: '85vh', overflow: 'auto', } const ConfirmModal: FC = ({ message = '', loading = false, hideCancelBtn = false, onClose = _identity, onConfirm = _identity, }) => (

{message}

{!hideCancelBtn && ( )}
) export default ConfirmModal