import * as React from 'react'; import { InsightsType } from '../../utils'; import { RenderIfFalse, RenderIfTrue } from '../FeatureFlag/RenderIf'; import { EnvDetector, InsightsEnvDetector } from '../FeatureFlag/EnvDetector'; import { Environments } from '../../types'; /** * @Deprecated Use RenderIfTrue instead. */ export const BetaIf = RenderIfTrue; /** * @Deprecated Use RenderIfFalse instead. */ export const BetaIfNot = RenderIfFalse; type BetaDetectorProps = { children: React.ReactNode; isBeta: boolean; } /** * @Deprecated Use EnvDetector with onEnvironment={ Environments.beta } and one of the current environments. */ export const BetaDetector: React.FunctionComponent = (props) => { props.children } ; interface InsightsBetaDetectorProps extends Omit { insights: InsightsType; } /** * @Deprecated Use InsightsEnvDetector with onEnvironment={ Environments.beta } */ export const InsightsBetaDetector: React.FunctionComponent = (props) => { props.children } ;