'use client' import { FC, MouseEventHandler } from 'react' import { Box } from '@mui/material' import IconButton from '../../buttons/IconButton' import CloseIcon from '../../icons/CloseIcon' import { StyledDialog } from './styled' import { DialogProps } from './types' const Dialog: FC = ({ children, ...props }) => { const { onClose } = props const handleClose: MouseEventHandler = (e) => { onClose?.(e, 'backdropClick') } return ( {!!onClose && ( )} {children} ) } export default Dialog