packageDocumentation module import * as React from "react" ; import { BadgeType } from "@itwin/appui-abstract" ; import { BetaBadge } from "./BetaBadge" ; import { NewBadge } from "./NewBadge" ; internal export class BadgeUtilities { /** Converts BetaType to Badge React component */ public static getComponentForBadgeType ( badgeType ? ) { if ( badgeType === undefined ) return undefined ; let component ; switch ( badgeType ) { case BadgeType . TechnicalPreview : component = < BetaBadge />; break ; case BadgeType . New : component = < NewBadge />; break ; case BadgeType . None : component = undefined ; break ; } return component ; } }