import { useState } from "react"; import { Link, NavLink, useLocation } from "react-router-dom"; const MenuIcon = () => ( ); const CloseIcon = () => ( ); const Navbar = () => { const location = useLocation(); const [isNavbarOpened, setIsNavbarOpened] = useState(false); const showNavbar = () => { setIsNavbarOpened(!isNavbarOpened); }; const links = [ { href: "/", label: "Amirmoghi3", isActive: location.pathname === "/", }, { href: "/resume", label: "Who I Am", isActive: location.pathname === "/resume", }, ]; return (
); }; export default Navbar;