container.tsx 827 B

12345678910111213141516171819202122232425
  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 useOrganization from 'sentry/utils/useOrganization';
  7. type Props = {
  8. children: React.ReactChildren;
  9. projects: Project[];
  10. };
  11. function IssueListContainer({children}: Props) {
  12. const organization = useOrganization();
  13. return (
  14. <SentryDocumentTitle title={t('Issues')} orgSlug={organization.slug}>
  15. <PageFiltersContainer>
  16. <NoProjectMessage organization={organization}>{children}</NoProjectMessage>
  17. </PageFiltersContainer>
  18. </SentryDocumentTitle>
  19. );
  20. }
  21. export default IssueListContainer;