import { useState, useRef } from 'react'; import Link from 'next/link'; import clsx from 'clsx'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; export default function DropDownList() { const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/'); const [dropDownExpanded, setDropDownExpanded] = useState(false); const t = useTranslations('Global'); function dropDownHandler() { setDropDownExpanded(!dropDownExpanded); } const links = [ { name: t('photo-marking'), href: '/pages/marking-photo' }, { name: t('video-marking'), href: '/pages/marking-video' }, { name: t('audio-marking'), href: '/pages/marking-audio' } ]; return ( <>
{t('marking')}
{link.name}
); })}