import React from "react"; import HeadingUnderline from "../Typography/HeadingUnderline"; import { drawerWidth } from "./constants"; import MaterialDrawer from "@material-ui/core/Drawer"; interface Props { title: string; isOpen?: boolean; onClose?: () => void; children?: React.ReactNode; rightTopElements?: React.ReactNode; } const Drawer = React.forwardRef( ({ title, isOpen, onClose, rightTopElements, children }: Props, ref) => { return (
{title}
{rightTopElements}
{children}
); } ); export default Drawer;