'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 HeaderLandingEditor = () => { 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 */}
  • icon login
  • Sign up- It’s Free
{/* End .right-widget */}
{/* /.theme-main-menu */} {/* Mobile Menu Start */}
brand
icon
{/* Mobile Menu close icon */}

Home

Features
Effect
Template
Feedback
{/* Mobile Menu End */} ); }; export default HeaderLandingEditor;