13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
import MenuIcon from "@mui/icons-material/Menu";
|
|
import IconButton from "@mui/material/IconButton";
|
|
|
|
interface Iprops {
|
|
openSidebar: () => void;
|
|
}
|
|
export default function SidebarToggler({ openSidebar }: Iprops) {
|
|
return (
|
|
<IconButton onClick={openSidebar} sx={{ pl: 0 }}>
|
|
<MenuIcon />
|
|
</IconButton>
|
|
);
|
|
}
|