settings.ts 491 B

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