import React from 'react'; import { NavLink } from 'react-router-dom'; import { sessions, metrics, assist, dashboard, withSiteId, recordings, } from 'App/routes'; import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG'; import SiteDropdown from '../SiteDropdown'; import styles from '../header.module.css'; const DASHBOARD_PATH = dashboard(); const METRICS_PATH = metrics(); const SESSIONS_PATH = sessions(); const ASSIST_PATH = assist(); const RECORDINGS_PATH = recordings(); interface Props { siteId: any; } function DefaultMenuView(props: Props) { const { siteId } = props; return (
v {window.env.VERSION}
Sessions ( location.pathname.includes(ASSIST_PATH) || location.pathname.includes(RECORDINGS_PATH) )} data-test-id="assist" > Assist ( location.pathname.includes(DASHBOARD_PATH) || location.pathname.includes(METRICS_PATH) )} data-test-id="dashboards" > Dashboards
); } export default DefaultMenuView;