import React from 'react'; import { Box, Modal, useTheme } from '@mui/material'; interface MyModalProps { open: boolean; onClose?: () => void; onSubmit?: (obj: any) => Promise; children: any; customStyles?: any; } export const ReusableModal: React.FC = ({ open, onClose, onSubmit, children, customStyles = {}, }) => { const theme = useTheme(); return ( {children} ); };