12345678910111213141516171819202122232425 |
- import NoProjectMessage from 'sentry/components/noProjectMessage';
- import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
- import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
- import {t} from 'sentry/locale';
- import useRouteAnalyticsHookSetup from 'sentry/utils/routeAnalytics/useRouteAnalyticsHookSetup';
- import useOrganization from 'sentry/utils/useOrganization';
- type Props = {
- children: React.ReactNode;
- };
- function IssueListContainer({children}: Props) {
- const organization = useOrganization();
- useRouteAnalyticsHookSetup();
- return (
- <SentryDocumentTitle title={t('Issues')} orgSlug={organization.slug}>
- <PageFiltersContainer>
- <NoProjectMessage organization={organization}>{children}</NoProjectMessage>
- </PageFiltersContainer>
- </SentryDocumentTitle>
- );
- }
- export default IssueListContainer;
|