import { FC } from 'react'; import { Modal, Backdrop, styled, IconButton, Tooltip } from '@mui/material'; import CloseIcon from '@mui/icons-material/Close'; 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, }); const StyledIconButton = styled(IconButton)(({ theme }) => ({ zIndex: 1, position: 'absolute', top: theme.spacing(3), right: theme.spacing(3), })); 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} ); };