index.tsx 644 B

1234567891011121314151617181920212223
  1. import styled from '@emotion/styled';
  2. import Feature from 'sentry/components/acl/feature';
  3. import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
  4. import withPageFilters from 'sentry/utils/withPageFilters';
  5. const Body = styled('div')`
  6. background-color: ${p => p.theme.background};
  7. flex-direction: column;
  8. flex: 1;
  9. `;
  10. const MonitorsContainer: React.FC = ({children}) => {
  11. return (
  12. <Feature features={['monitors']} renderDisabled>
  13. <PageFiltersContainer>
  14. <Body>{children}</Body>
  15. </PageFiltersContainer>
  16. </Feature>
  17. );
  18. };
  19. export default withPageFilters(MonitorsContainer);