migration wip
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user