settings.ts 414 B

12345678910
  1. import type {BadgeType} from 'sentry/components/featureBadge';
  2. export const RELEASE_LEVEL: BadgeType = 'alpha';
  3. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  4. export const releaseLevelAsBadgeProps = {
  5. isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
  6. isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
  7. isNew: (RELEASE_LEVEL as BadgeType) === 'new',
  8. };