import { Dialog, DialogTitle, Icon, IconButton } from "@mui/material"; import { MouseEventHandler, ReactNode } from "react"; interface Props { children: ReactNode; onClose: MouseEventHandler; title: string; open: boolean; } // A simple dialog export default function Home({ children, onClose, title, open }: Props) { return ( {title} {onClose ? ( theme.palette.grey[500], }} > close ) : null} {children} ); }