diff --git a/src/components/shared/Header.tsx b/src/components/shared/Header.tsx index 391ed7e..d31aee8 100644 --- a/src/components/shared/Header.tsx +++ b/src/components/shared/Header.tsx @@ -7,12 +7,14 @@ import ThemeTogglebutton from "../ui/ThemeToggle"; import { useState } from "react"; import NavLink from "./NavLink"; import { title } from "process"; +import { usePathname } from "next/navigation"; const Header = () => { const [menuOpen, setMenuOpen] = useState(false); const handleMenuOpen = () => { setMenuOpen(!menuOpen); }; + const pathname = usePathname(); const links = [ { title: "Home", @@ -62,7 +64,9 @@ const Header = () => { {links.map((link, index) => ( {link.title}