import React, { ReactNode } from 'react'; import { NavItem } from 'app/modules/navigation/components/nav/navItem'; import { accountSettingsRoute, calendarRoute, contactRoute, mapRoute, openVpnRoute, ROUTER, technicalManagementRoute, } from 'app/common/routes'; import { ExternalNavItem } from 'app/modules/navigation/components/nav/externalNavItem'; import { ActionNavItem } from 'app/modules/navigation/components/nav/actionNavItem'; import { AdminGuard, PermissionGuard } from 'app/common/containers/auth/guard.container'; import { AUTH } from 'app/common/store/auth/auth.constants'; import { UPDATE_NOTIFICATION_CATEGORY } from 'app/modules/notifications/store/updateNotification/updateNotifications.constants'; import { some } from 'lodash'; import { getAdminPanelUrl } from 'app/common/services/config/config.service'; import { useSelector } from 'react-redux'; import { selectUpdateNotifications } from 'app/modules/notifications/store/updateNotification/updateNotifications.selectors'; interface Props { onClickItemOut: () => void, children: ReactNode, } const SideNav = ({ children, onClickItemOut }: Props) => { const updateNotifications = useSelector(selectUpdateNotifications); const getUpdateNotification = (category) => { return some(updateNotifications, { category }); }; return ( ); }; export { SideNav };