'use client'; import Link from 'next/link'; import Image from 'next/image'; import { useTranslations } from 'next-intl'; import { usePathname } from 'next/navigation'; export default function Header() { const t = useTranslations('Navigation'); const pathname = usePathname(); // Extract locale from pathname const currentLocale = pathname.split('/')[1] || 'en'; // Function to get path for a different locale const getPathForLocale = (newLocale: string) => { const segments = pathname.split('/'); segments[1] = newLocale; return segments.join('/'); }; const menuItems = [ { label: t('home'), href: '/' }, { label: t('team'), href: '/team' }, { label: t('products'), href: '/products' }, { label: t('blog'), href: '/blog' }, { label: t('contact'), href: '/contact' }, ]; return (
KLZ Cables
EN | DE
{/* Mobile Menu Button (Placeholder) */}
); }