"use client"; import { useEffect, useState } from "react"; import Image from "next/image"; import { navigationData } from "@/data/navigation"; import { SearchIcon } from "@/components/shared/icons/SearchIcon"; export function Navbar() { const [isSticky, setIsSticky] = useState(false); const [openDropdown, setOpenDropdown] = useState(null); useEffect(() => { const onScroll = () => setIsSticky(window.scrollY > 120); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); return (
{/* Logo */} tenext
{/* Navigation */} {/* Right Icons */}
Log in Talk to an expert {/* Mobile menu button */}
); }