import { FC, ReactNode } from 'react' import { Link } from 'react-router-dom' import { clx } from '../helpers/utils' import { Pages } from '../config/Pages' type Props = { icon: ReactNode, title: string, isActive: boolean, link: string, isLogout?: boolean, } const SideBarItem: FC = (props: Props) => { const handleLogout = () => { localStorage.removeItem(import.meta.env.VITE_TOKEN_NAME) window.location.href = Pages.auth.login } return (
{props.icon}
{props.title}
) } export default SideBarItem