2023-08-23 10:56:45 +00:00
|
|
|
import { IconButton, IconButtonProps, useTheme } from "@mui/material";
|
|
|
|
import { deepmerge } from "@mui/utils";
|
2023-08-21 11:10:34 +00:00
|
|
|
|
|
|
|
|
2023-08-23 11:14:40 +00:00
|
|
|
export function BurgerButton(props: IconButtonProps) {
|
2023-08-21 11:10:34 +00:00
|
|
|
const theme = useTheme();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<IconButton
|
2023-08-23 10:56:45 +00:00
|
|
|
{...deepmerge({
|
|
|
|
sx: {
|
|
|
|
height: 30,
|
|
|
|
width: 30,
|
|
|
|
p: 0,
|
|
|
|
color: "black",
|
|
|
|
"&:hover": {
|
2023-08-24 12:44:51 +00:00
|
|
|
color: theme.palette.purple.main,
|
2023-08-23 10:56:45 +00:00
|
|
|
backgroundColor: "rgb(0 0 0 / 0)",
|
|
|
|
},
|
|
|
|
"&:active": {
|
2023-08-24 12:44:51 +00:00
|
|
|
color: theme.palette.purple.main,
|
2023-08-23 10:56:45 +00:00
|
|
|
},
|
2023-08-21 11:10:34 +00:00
|
|
|
},
|
2023-08-23 10:56:45 +00:00
|
|
|
}, props)}
|
2023-08-21 11:10:34 +00:00
|
|
|
>
|
|
|
|
<svg width="30" height="31" viewBox="0 0 30 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2023-08-21 13:37:25 +00:00
|
|
|
<path d="M28 8.005H3M28 16.005H3M28 24.005H3" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
|
2023-08-21 11:10:34 +00:00
|
|
|
</svg>
|
|
|
|
</IconButton>
|
|
|
|
);
|
|
|
|
}
|