import { Col } from 'antd'; import ROUTES from 'constants/routes'; import history from 'lib/history'; import React from 'react'; import { useLocation } from 'react-router-dom'; import ShowBreadcrumbs from './Breadcrumbs'; import DateTimeSelector from './DateTimeSelection'; import { Container } from './styles'; const routesToSkip = [ROUTES.SETTINGS, ROUTES.LIST_ALL_ALERT]; const TopNav = (): JSX.Element | null => { const { pathname } = useLocation(); if (history.location.pathname === ROUTES.SIGN_UP) { return null; } return ( {!routesToSkip.includes(pathname) && ( )} ); }; export default TopNav;