index.tsx 534 B

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