index.tsx 726 B

12345678910111213141516171819
  1. import Feature from 'sentry/components/acl/feature';
  2. import NoProjectMessage from 'sentry/components/noProjectMessage';
  3. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  4. import useOrganization from 'sentry/utils/useOrganization';
  5. import withPageFilters from 'sentry/utils/withPageFilters';
  6. function MonitorsContainer({children}: {children?: React.ReactNode}) {
  7. const organization = useOrganization();
  8. return (
  9. <Feature features={['monitors']} renderDisabled>
  10. <NoProjectMessage organization={organization}>
  11. <PageFiltersContainer>{children}</PageFiltersContainer>
  12. </NoProjectMessage>
  13. </Feature>
  14. );
  15. }
  16. export default withPageFilters(MonitorsContainer);