import { useState, useRef } from 'react'; import Link from 'next/link'; import clsx from 'clsx'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { useSideMenuStore } from '@/app/stores/sideMenuStore'; export default function DropDownList() { const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/'); const [dropDownExpanded, setDropDownExpanded] = useState(false); const t = useTranslations('Global'); const setMenuState = useSideMenuStore(s => s.setValue); function dropDownHandler() { setDropDownExpanded(!dropDownExpanded); } const links = [ { name: 'images-few', href: '/pages/marking-images' }, { name: 'videos', href: '/pages/marking-video' }, { name: 'audios', href: '/pages/marking-audio' }, { name: 'documents', href: '/pages/marking-document' } ]; return ( <>
{t('marking')}
{t(link.name)}
); })}