import { FC } from "react" import { SidebarInterface } from "../../../types" import clsx from "clsx" import { Link, useLocation } from "react-router-dom" type Props = { item: SidebarInterface } export const SidebarItem: FC = ({ item }) => { const { pathname } = useLocation() return ( {item?.route === pathname ? item?.activeIcon : item?.icon}

{item?.title}

) }