import {Modal, styled} from '@mui/material'; import {IStyledModal, ICloseIconWrapper} from './modal.type'; const Container = styled(Modal)` display: flex; justify-content: center; align-items: center; `; const StyledModal = styled('div')` background-color: ${({theme}) => theme.palette.gray[25]}; ${({isRtl}) => (isRtl ? 'direction: rtl;' : '')} border-radius: 16px; max-height: 90vh; min-width: 300px; min-height: 150px; position: relative; `; const CloseIconWrapper = styled('div')` position: absolute; top: 10px; ${({isRtl}) => (isRtl ? 'left: 10px;' : 'right: 10px;')} cursor: pointer; padding: 10px; `; export const ModalComponents = { Container, StyledModal, CloseIconWrapper, };