"use client"; import { useState, useEffect } from "react"; import Link from "next/link"; import { motion, AnimatePresence } from "framer-motion"; import { MobileNav } from "./MobileNav"; const navLinks = [ { href: "/experiences", label: "Experiences" }, { href: "/about", label: "About" }, { href: "/blog", label: "The Edit" }, { href: "/faq", label: "FAQ" }, { href: "/contact", label: "Contact" }, ]; export function Header() { const [scrolled, setScrolled] = useState(false); const [mobileOpen, setMobileOpen] = useState(false); useEffect(() => { const handleScroll = () => setScrolled(window.scrollY > 50); window.addEventListener("scroll", handleScroll, { passive: true }); return () => window.removeEventListener("scroll", handleScroll); }, []); return ( <>
The Anatolian Edit
{mobileOpen && setMobileOpen(false)} />} ); }