metricFeatureBadge.tsx 405 B

1234567891011121314
  1. import FeatureBadge from 'sentry/components/badge/featureBadge';
  2. import useOrganization from 'sentry/utils/useOrganization';
  3. import {hasRolledOutMetrics} from '../../utils/metrics/features';
  4. export function MetricsFeatureBadge() {
  5. const organization = useOrganization();
  6. if (hasRolledOutMetrics(organization)) {
  7. return <FeatureBadge type="new" />;
  8. }
  9. return <FeatureBadge type="beta" />;
  10. }