diff --git a/frontend/src/component/common/FeatureLifecycle/getFeatureLifecycleName.ts b/frontend/src/component/common/FeatureLifecycle/getFeatureLifecycleName.ts new file mode 100644 index 000000000000..8dd4d8e4560c --- /dev/null +++ b/frontend/src/component/common/FeatureLifecycle/getFeatureLifecycleName.ts @@ -0,0 +1,21 @@ +import type { Lifecycle } from 'interfaces/featureToggle'; + +export const getFeatureLifecycleName = (stage: Lifecycle['stage']): string => { + if (stage === 'initial') { + return 'Define'; + } + if (stage === 'pre-live') { + return 'Develop'; + } + if (stage === 'live') { + return 'Production'; + } + if (stage === 'completed') { + return 'Cleanup'; + } + if (stage === 'archived') { + return 'Archived'; + } + + return stage; +};