diff --git a/src/components/ui/Navigation.js b/src/components/ui/Navigation.js index 58776fc..550cc01 100644 --- a/src/components/ui/Navigation.js +++ b/src/components/ui/Navigation.js @@ -5,17 +5,17 @@ import { usePathname } from "next/navigation"; import { useSession, signOut } from "next-auth/react"; import { useTranslation } from "@/lib/i18n"; import LanguageSwitcher from "./LanguageSwitcher"; +import { useState } from "react"; const Navigation = () => { const pathname = usePathname(); const { data: session, status } = useSession(); const { t } = useTranslation(); + const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const isActive = (path) => { if (path === "/") return pathname === "/"; - // Exact match for paths if (pathname === path) return true; - // For nested paths, ensure we match the full path segment if (pathname.startsWith(path + "/")) return true; return false; }; @@ -43,67 +43,145 @@ const Navigation = () => { } return ( -