index.tsx 721 B

123456789101112131415161718192021222324
  1. import Feature from 'sentry/components/acl/feature';
  2. import {NoAccess} from 'sentry/components/noAccess';
  3. import NoProjectMessage from 'sentry/components/noProjectMessage';
  4. import useOrganization from 'sentry/utils/useOrganization';
  5. export const TRACE_EXPLORER_DOCS_URL = 'https://docs.sentry.io/product/explore/traces/';
  6. interface Props {
  7. children: React.ReactNode;
  8. }
  9. export default function TracesPage({children}: Props) {
  10. const organization = useOrganization();
  11. return (
  12. <Feature
  13. features={['performance-trace-explorer']}
  14. organization={organization}
  15. renderDisabled={NoAccess}
  16. >
  17. <NoProjectMessage organization={organization}>{children}</NoProjectMessage>
  18. </Feature>
  19. );
  20. }