import { ReactNode, FC } from 'react'; import { Modal, Backdrop, styled } from '@mui/material'; import Fade from '@mui/material/Fade'; import { SIDEBAR_MODAL_ID } from 'utils/testIds'; import * as React from 'react'; interface ISidebarModalProps { open: boolean; onClose: () => void; label: string; children: React.ReactElement; } const TRANSITION_DURATION = 250; const ModalContentWrapper = styled('div')({ position: 'absolute', top: 0, right: 0, bottom: 0, height: '100vh', maxWidth: '98vw', overflow: 'auto', boxShadow: '0 0 1rem rgba(0, 0, 0, 0.25)', }); const FixedWidthContentWrapper = styled(ModalContentWrapper)({ width: 1300, }); export const BaseModal: FC = ({ open, onClose, label, children, }) => { return ( {children} ); }; export const SidebarModal: FC = props => { return ( {props.children} ); }; export const DynamicSidebarModal: FC = props => { return ( {props.children} ); };