import React, { FC } from 'react'; import { useSelector } from 'react-redux'; import Page from 'app/core/components/Page/Page'; import { getNavModel } from 'app/core/selectors/navModel'; import { StoreState } from 'app/types/store'; interface Props { pageId: string; isLoading?: boolean; } export const AlertingPageWrapper: FC = ({ children, pageId, isLoading }) => { const navModel = getNavModel( useSelector((state: StoreState) => state.navIndex), pageId ); return ( {children} ); };