mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
import Feature from 'sentry/components/acl/feature';
|
|
import NoProjectMessage from 'sentry/components/noProjectMessage';
|
|
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
|
|
function MonitorsContainer({children}: {children?: React.ReactNode}) {
|
|
const organization = useOrganization();
|
|
|
|
return (
|
|
<Feature features="monitors" renderDisabled>
|
|
<NoProjectMessage organization={organization}>
|
|
<PageFiltersContainer>{children}</PageFiltersContainer>
|
|
</NoProjectMessage>
|
|
</Feature>
|
|
);
|
|
}
|
|
|
|
export default MonitorsContainer;
|