'use client'; import { useTranslations } from 'next-intl'; import { LanguageSwitcher } from '@/components/LanguageSwitcher'; import { useEffect, useState } from 'react'; export function Navbar() { const t = useTranslations(); const [isScrolled, setIsScrolled] = useState(false); const [isMenuOpen, setIsMenuOpen] = useState(false); useEffect(() => { const handleScroll = () => { const floating = window.scrollY > 60; setIsScrolled(floating); document.body.classList.toggle('nav-is-floating', floating); }; window.addEventListener('scroll', handleScroll, { passive: true }); handleScroll(); return () => { window.removeEventListener('scroll', handleScroll); }; }, []); return (
); }