index.tsx 952 B

123456789101112131415161718192021222324252627
  1. import NoProjectMessage from 'sentry/components/noProjectMessage';
  2. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  3. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  4. import {t} from 'sentry/locale';
  5. import {Project} from 'sentry/types';
  6. import useRouteAnalyticsHookSetup from 'sentry/utils/routeAnalytics/useRouteAnalyticsHookSetup';
  7. import useOrganization from 'sentry/utils/useOrganization';
  8. type Props = {
  9. children: React.ReactNode;
  10. projects: Project[];
  11. };
  12. function IssueListContainer({children}: Props) {
  13. const organization = useOrganization();
  14. useRouteAnalyticsHookSetup();
  15. return (
  16. <SentryDocumentTitle title={t('Issues')} orgSlug={organization.slug}>
  17. <PageFiltersContainer>
  18. <NoProjectMessage organization={organization}>{children}</NoProjectMessage>
  19. </PageFiltersContainer>
  20. </SentryDocumentTitle>
  21. );
  22. }
  23. export default IssueListContainer;