'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { getLocaleFromPath, getLocalizedPath, type Locale } from '@/lib/i18n'; import { Button } from '@/components/ui'; export function LocaleSwitcher() { const pathname = usePathname(); const currentLocale = getLocaleFromPath(pathname); const locales: Locale[] = ['en', 'de']; return (