import { MenuToggle } from "../MenuToggle" import { useMobile } from "src/hooks/useMobile" import { Menu } from "../Menu" import { Overlay } from "@/ui/Overlay" import { useContext } from "react" import { ConfigContext } from "src/context/ConfigContext" import { Box } from "@/ui/Box" import { Spacer } from "../Spacer" import { useToggle } from "react-use" import { Button } from "@/ui/Button" import { EyeOpenIcon } from "@radix-ui/react-icons" import { HudozkaLogo } from "../HudozkaLogo" import { useDarkTheme } from "@/hooks/useDarkTheme" import { HudozkaTitle } from "../HudozkaTitle" import Link from "next/link" export type NavigationProps = { style?: React.CSSProperties } export const Navigation: React.FC = props => { const mobile = useMobile() const dark = useDarkTheme() const [open, toggleOpen] = useToggle(false) const { menu } = useContext(ConfigContext) return ( <> {!mobile ? null : ( )} {mobile ? null : ( { toggleOpen(false) }} /> )} {!mobile ? null : ( )} ) }