migration wip

This commit is contained in:
2025-12-30 00:06:54 +01:00
parent 3efbac78cb
commit 89dbf8af87
94 changed files with 5674 additions and 308 deletions

View File

@@ -5,7 +5,6 @@ import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Button } from '@/components/ui/Button';
import { LocaleSwitcher } from '@/components/LocaleSwitcher';
import { getLocaleFromPath } from '@/lib/i18n';
interface MobileMenuProps {
locale: string;
@@ -15,8 +14,14 @@ interface MobileMenuProps {
export function MobileMenu({ locale, siteName, onClose }: MobileMenuProps) {
const [isOpen, setIsOpen] = useState(false);
const [isMounted, setIsMounted] = useState(false);
const pathname = usePathname();
const currentLocale = getLocaleFromPath(pathname);
useEffect(() => {
setIsMounted(true);
}, []);
// Close menu when route changes
// Main navigation menu
const mainMenu = [