index.tsx 649 B

123456789101112131415161718
  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. function MonitorsContainer({children}: {children?: React.ReactNode}) {
  6. const organization = useOrganization();
  7. return (
  8. <Feature features={['monitors']} renderDisabled>
  9. <NoProjectMessage organization={organization}>
  10. <PageFiltersContainer>{children}</PageFiltersContainer>
  11. </NoProjectMessage>
  12. </Feature>
  13. );
  14. }
  15. export default MonitorsContainer;