settings.ts 488 B

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