SidebarToggler.tsx 344 B

12345678910111213
  1. import MenuIcon from "@mui/icons-material/Menu";
  2. import IconButton from "@mui/material/IconButton";
  3. interface Iprops {
  4. openSidebar: () => void;
  5. }
  6. export default function SidebarToggler({ openSidebar }: Iprops) {
  7. return (
  8. <IconButton onClick={openSidebar} sx={{ pl: 0 }}>
  9. <MenuIcon />
  10. </IconButton>
  11. );
  12. }