"use client"; import { Dispatch, SetStateAction, useRef, useState } from "react"; import { ProfilePicture } from "../images/ProfilePicture"; import { Hamburger } from "./Hamburger"; import { Links } from "./Links"; import { Close } from "../icons/Close"; import Link from "next/link"; import { Dialog } from "@headlessui/react"; import { usePathname } from "next/navigation"; export const Navbar = () => { const [isOpen, setIsOpen] = useState(false); return ( <> ); }; export const MobileMenu = ({ isOpen, setIsOpen, }: { isOpen: boolean; setIsOpen: Dispatch>; }) => { const focusedRef = useRef(null); const path = usePathname(); const checkPath = (href: string) => { if (href === path) { setIsOpen(false); } }; return ( setIsOpen(false)} >
    checkPath("/")}> < Home /> checkPath("/projects")}> < Projects />
); };