index.tsx 589 B

12345678910111213141516171819202122
  1. import type {RouteComponentProps} from 'react-router';
  2. import Feature from 'sentry/components/acl/feature';
  3. import type {Organization} from 'sentry/types/organization';
  4. import type {Project} from 'sentry/types/project';
  5. import ProjectMetrics from './projectMetrics';
  6. type Props = RouteComponentProps<{projectId: string}, {}> & {
  7. organization: Organization;
  8. project: Project;
  9. };
  10. function ProjectMetricsContainer(props: Props) {
  11. return (
  12. <Feature features={['custom-metrics']}>
  13. <ProjectMetrics {...props} />
  14. </Feature>
  15. );
  16. }
  17. export default ProjectMetricsContainer;