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