import Box from "@mui/material/Box" import Typography from "@mui/material/Typography" import Drawer from "@mui/material/Drawer" import IconButton from "@mui/material/IconButton" import Menu from "@mui/icons-material/Menu" import MuiNextLink from "@components/MuiNextLink" import { useState } from "react" const SideDrawer = ({ navLinks }) => { const [state, setState] = useState({ right: false, }) const toggleDrawer = (anchor, open) => (event) => { if (event.type === "keydown" && (event.key === "Tab" || event.key === "Shift")) { return ; } setState({...state, [anchor]: open}) } const list = (anchor) => ( {navLinks.map(({ title, path }, i) => ( {title} ))} ) return ( <> { list("right") } ) } export default SideDrawer