diff --git a/app/components/NavBar.tsx b/app/components/NavBar.tsx index 96b02ba..bb4beb4 100644 --- a/app/components/NavBar.tsx +++ b/app/components/NavBar.tsx @@ -1,6 +1,8 @@ +"use client"; import Link from 'next/link'; import Image from 'next/image'; import { signOut } from "next-auth/react"; +import { usePathname } from 'next/navigation'; interface NavBarProps { isOpen: boolean; @@ -9,6 +11,7 @@ interface NavBarProps { } const NavBar: React.FC = ({ isOpen, setIsOpen, user }) => { + const pathname = usePathname(); return (