import {Fragment} from 'react'; import Feature from 'sentry/components/acl/feature'; import {SecondaryNav} from 'sentry/components/nav/secondary'; 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 hasNavigationV2 = organization?.features.includes('navigation-sidebar-v2'); if (!hasNavigationV2) { return children; } const baseUrl = `/organizations/${organization.slug}/explore`; // TODO(malwilley): Move other products under the /explore/ route return ( {t('Traces')} {t('Logs')} {t('Profiles')} {t('Replays')} {t('Discover')} {t('Releases')} {children} ); }