"use client"; import React from "react"; import Link from "next/link"; import clsx from "clsx"; import { usePathname } from "next/navigation"; import { sidebarData } from "@/lib/database/pathnames"; import { useAppSelector } from "@/redux/hooks"; export const Sidebar = () => { const pathname = usePathname(); const lang = useAppSelector( (state) => state.headerSlice.activeLang.localization ); return (
{lang === "ru" ? item.pathname : item.pathnameEn}