'use client'; import { useMemo } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { ChevronDown } from 'lucide-react'; import { Button } from '../shadcn/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../shadcn/dropdown-menu'; import { Trans } from './trans'; function MobileNavigationDropdown({ links, }: { links: { path: string; label: string; }[]; }) { const path = usePathname(); const currentPathName = useMemo(() => { return Object.values(links).find((link) => link.path === path)?.label; }, [links, path]); return ( {Object.values(links).map((link) => { return ( ); })} ); } export default MobileNavigationDropdown;