import { FC } from 'react' import LogoImage from '../assets/images/logo.svg' import { useTranslation } from 'react-i18next' import { Card, DocumentText, Element3, Element4, Home2, Logout, Messages3, NotificationStatus, Receipt21, Setting2, Teacher } from 'iconsax-react' import SideBarItem from './SideBarItem' import { useLocation } from 'react-router-dom' import { Pages } from '../config/Pages' import { useSharedStore } from './store/sharedStore' import { clx } from '../helpers/utils' const SideBar: FC = () => { const { t } = useTranslation('global') const { openSidebar, setOpenSidebar } = useSharedStore() const location = useLocation() const isActive = (name: string) => { return location.pathname.includes(name) } const iconSizeSideBar = 20 return ( <> { openSidebar &&