'use client'; import { useState, useEffect } from 'react'; import { Locale } from '../lib/i18n'; import { getTranslations } from '../lib/translations'; interface NavigationProps { locale?: Locale; } export default function Navigation({ locale = 'en' }: NavigationProps) { const [isScrolled, setIsScrolled] = useState(false); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); const t = getTranslations(locale); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const navItems = [ { href: `/${locale}#hero`, label: t.nav.heroSection }, { href: `/${locale}#about`, label: t.nav.aboutEcoLife }, { href: `/${locale}/products`, label: t.nav.products }, { href: `/${locale}/blog`, label: t.nav.blog }, { href: `/${locale}/contact`, label: t.nav.contact }, ]; return ( ); }