import {Fragment} from 'react'; import Feature from 'sentry/components/acl/feature'; import {NAV_GROUP_LABELS} from 'sentry/components/nav/constants'; import {usePrefersStackedNav} from 'sentry/components/nav/prefersStackedNav'; import {SecondaryNav} from 'sentry/components/nav/secondary'; import {PrimaryNavGroup} from 'sentry/components/nav/types'; import {t} from 'sentry/locale'; import useOrganization from 'sentry/utils/useOrganization'; type Props = { children: React.ReactNode; }; export default function ExploreNavigation({children}: Props) { const organization = useOrganization(); const prefersStackedNav = usePrefersStackedNav(); if (!prefersStackedNav) { return children; } const baseUrl = `/organizations/${organization.slug}/explore`; // TODO(malwilley): Move other products under the /explore/ route return ( {NAV_GROUP_LABELS[PrimaryNavGroup.EXPLORE]} {t('Traces')} {t('Logs')} {t('Profiles')} {t('Replays')} {t('Discover')} {t('Releases')} {children} ); }