'use client' import { useState, useEffect } from 'react' import { Link } from '@/i18n/navigation' import Image from 'next/image' import { ThemeToggle } from '@/components/theme-toggle' import { GlitchButton } from '@/components/effects/glitch-button' import LanguageSwitcher from './LanguageSwitcher' import { useLocale, useTranslations } from 'next-intl' export function HeroHeader() { const locale = useLocale() const t = useTranslations('Home') const tNav = useTranslations('Navigation') const terminalVersion = t('terminalVersion') const blogLabel = tNav('blog') const aboutLabel = tNav('about') const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false) const [isMobile, setIsMobile] = useState(false) useEffect(() => { const checkMobile = () => setIsMobile(window.innerWidth < 768) checkMobile() window.addEventListener('resize', checkMobile) return () => window.removeEventListener('resize', checkMobile) }, []) return (