import { Profile } from "iconsax-react"; import { FC } from "react"; import { useTranslation } from "react-i18next"; import { useLocation } from "react-router-dom"; import { Pages } from "../../config/Pages"; import { TASK_MANAGER_PERMISSION_RESOURCES } from "../../helpers/permissions"; import SubMenuItem from "./SubMenuItem"; const UsersSubMenu: FC = () => { const location = useLocation(); const { t } = useTranslation("global"); const isActive = (name: string) => location.pathname.includes(name); const isTaskManagerActive = location.pathname.startsWith(Pages.taskmanager.workspace) || location.pathname === Pages.taskmanager.workspaceList || location.pathname.startsWith(Pages.taskmanager.updateWorkspace) || location.pathname === Pages.taskmanager.createWorkspace || location.pathname === Pages.taskmanager.createProject || location.pathname.startsWith(Pages.taskmanager.updateProject) || location.pathname.startsWith(Pages.taskmanager.projectList); return (