import { useState } from "react"; import styles, { colors } from "../../styles"; import MenuIcon from "@mui/icons-material/Menu"; import SidebarModal from "../Sidebar/Sidebar"; import { Drawer } from "@mui/material"; export interface props { label: string; } export default function Header(props: props) { const [SidebarOpen, SetSidebarOpen] = useState(false); return (
{ SetSidebarOpen(true); }} />

{props.label}

SetSidebarOpen(false)}>
); }