'use client'; import { usePathname, useRouter } from 'next/navigation'; interface NavigationProps { currentLang: string; t: { nav: { products: string; security: string; datacenter: string; support: string; console: string; }; }; } export default function Navigation({ currentLang, t }: NavigationProps) { const router = useRouter(); const pathname = usePathname(); const switchLanguage = (lang: string) => { const currentPath = pathname.replace(/^\/[a-z]{2}/, ''); router.push(`/${lang}${currentPath}`); }; return ( ); }