'use client' import React, { useEffect, useState } from "react"; import Link from "next/link"; import MegaMenuLanding from "../../header/mega-menu/MegaMenuLanding"; import Image from "next/image"; const HeaderLandingNoteTaking = () => { // For header select menu const [click1, setClick1] = useState(false); const handleClick1 = () => setClick1(!click1); // For Mobile menu const [click, setClick] = useState(false); const handleClick = () => setClick(!click); const [navbar, setNavbar] = useState(false); const changeBackground = () => { if (typeof window !== "undefined") { if (window.scrollY >= 90) { setNavbar(true); } else { setNavbar(false); } } }; useEffect(() => { window.addEventListener("scroll", changeBackground); return () => { window.removeEventListener("scroll", changeBackground); } }, []) return ( <> {/* ============================================= Theme Main Menu ============================================== */}
brand
{/* End logo */} {/* End Navbar */}
{/* End right-widget */}
{/* /.theme-main-menu */} {/* Mobile Menu Start */}
brand
icon
{/* Mobile Menu close icon */}

Home

Features
Product
Why Us
Pricing
Feedback
{/* Mobile Menu End */} ); }; export default HeaderLandingNoteTaking;