2023-07-31 21:20:17 +00:00
|
|
|
import { useState } from "react";
|
|
|
|
import { IconButton, useTheme } from "@mui/material";
|
|
|
|
import MenuIcon from "@mui/icons-material/Menu";
|
2023-08-07 15:16:34 +00:00
|
|
|
import { Link } from "react-router-dom";
|
2023-07-31 21:20:17 +00:00
|
|
|
|
|
|
|
import SectionWrapper from "../SectionWrapper";
|
|
|
|
|
|
|
|
import PenaLogo from "../PenaLogo";
|
|
|
|
import DialogMenu from "./DialogMenu";
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
isLoggedIn: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function NavbarCollapsed({ isLoggedIn }: Props) {
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
|
|
|
|
const theme = useTheme();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<SectionWrapper
|
|
|
|
component="nav"
|
|
|
|
maxWidth="lg"
|
|
|
|
outerContainerSx={{
|
2023-08-16 17:58:08 +00:00
|
|
|
zIndex: "111111111111",
|
2023-08-07 13:36:59 +00:00
|
|
|
position: "fixed",
|
|
|
|
top: "0",
|
2023-08-22 10:28:22 +00:00
|
|
|
backgroundColor: theme.palette.bg.main,
|
2023-08-07 13:36:59 +00:00
|
|
|
borderBottom: "1px solid #E3E3E3",
|
2023-07-31 21:20:17 +00:00
|
|
|
}}
|
|
|
|
sx={{
|
|
|
|
height: "51px",
|
|
|
|
py: "6px",
|
|
|
|
display: "flex",
|
|
|
|
justifyContent: "space-between",
|
|
|
|
alignItems: "center",
|
|
|
|
}}
|
|
|
|
>
|
2023-08-07 13:36:59 +00:00
|
|
|
<Link to="/">
|
2023-08-22 10:28:22 +00:00
|
|
|
<PenaLogo width={100} color="black" />
|
2023-08-07 13:36:59 +00:00
|
|
|
</Link>
|
|
|
|
|
2023-08-16 19:23:22 +00:00
|
|
|
<IconButton
|
|
|
|
onClick={() => setOpen(!open)}
|
|
|
|
sx={{ p: 0, width: "30px", color: theme.palette.primary.main, zIndex: "2" }}
|
|
|
|
>
|
2023-07-31 21:20:17 +00:00
|
|
|
<MenuIcon sx={{ height: "30px", width: "30px" }} />
|
|
|
|
</IconButton>
|
2023-08-16 19:23:22 +00:00
|
|
|
<DialogMenu open={open} handleClose={() => setOpen(false)} />
|
2023-07-31 21:20:17 +00:00
|
|
|
</SectionWrapper>
|
|
|
|
);
|
|
|
|
}
|