import {Fragment} from 'react'; import {SecondaryNav} from 'sentry/components/nav/secondary'; import {t} from 'sentry/locale'; import type {RouteComponentProps} from 'sentry/types/legacyReactRouter'; import useOrganization from 'sentry/utils/useOrganization'; interface IssuesWrapperProps extends RouteComponentProps<{}, {}> { children: React.ReactNode; } export function IssueNavigation({children}: IssuesWrapperProps) { const organization = useOrganization(); const hasNavigationV2 = organization?.features.includes('navigation-sidebar-v2'); if (!hasNavigationV2) { return children; } const baseUrl = `/organizations/${organization.slug}/issues`; return ( {t('All')} {t('Feedback')} {t('Alerts')} {children} ); }