diff --git a/src/common/components/Navigation/Navigation.jsx b/src/common/components/Navigation/Navigation.jsx new file mode 100644 index 0000000..d621723 --- /dev/null +++ b/src/common/components/Navigation/Navigation.jsx @@ -0,0 +1,49 @@ +import LogoDark from "@/common/assets/images/logo/dark.webp"; +import LogoLight from "@/common/assets/images/logo/light.webp"; + +import {AppBar, Button, IconButton, Link, Stack, Typography, useMediaQuery, useTheme} from "@mui/material"; +import {Menu} from "@mui/icons-material"; +import {useNavigate} from "react-router-dom"; +import routes from "@/common/routes"; + +const NAVBAR_HEIGHT = 80; + +export const Navigation = () => { + const navigate = useNavigate(); + + const theme = useTheme(); + const isMobile = useMediaQuery(theme.breakpoints.down("lg")); + const isDarkMode = theme.palette.mode === "dark"; + + return ( + + + Logo + + {!isMobile && <> + + {routes.map((route, index) => navigate(route.path)}> + + {route.name} + + )} + + + + } + + {isMobile && <> + console.log("Menu")} sx={{mx: 2}}> + + + } + + + + ) +} \ No newline at end of file