import React, { Dispatch, SetStateAction } from 'react' import DialogTitle from '@mui/material/DialogTitle' import IconButton from '@mui/material/IconButton' import CloseIcon from '@mui/icons-material/Close' export interface DialogTitleProps { id: string children?: React.ReactNode handleOpen: Dispatch> } export const BootstrapDialogTitle = (props: DialogTitleProps) => { const { children, handleOpen, ...other } = props return ( {children} {handleOpen ? ( handleOpen(false)} sx={{ position: 'absolute', right: 8, top: 8, color: (theme) => theme.palette.grey[500] }} > ) : null} ) }