import React, { FC } from 'react'; import { Modal, IconButton, Box } from '@mui/material'; import { Clear } from "@mui/icons-material"; interface ModalProps { isOpen: boolean; onClose: () => void; children?: JSX.Element; modalStyle?: React.CSSProperties; canBeClosed?: boolean; } export const GenericModal: FC = ( { isOpen, onClose, children, modalStyle, canBeClosed = true }) => { return ( { }} > {canBeClosed ? : null } {children} ); }; const defaultModalStyle = { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: 500, bgcolor: 'background.paper', boxShadow: 24, p: 4, height: '60%', display: 'block', overflow: 'scroll', padding: '5px 25px 10px 25px', zIndex: 3147483647, };