index.tsx 544 B

123456789101112131415161718192021
  1. import type {RouteComponentProps} from 'react-router';
  2. import Feature from 'sentry/components/acl/feature';
  3. import type {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;