mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-28 20:00:10 +02:00

[web] Move editor redesign to labs experiment GitOrigin-RevId: 5f11ff29a6c392ff6e448a16450e2e65a2574097
10 lines
412 B
TypeScript
10 lines
412 B
TypeScript
import getMeta from './meta'
|
|
|
|
// Should be `never` when no experiments are active. Otherwise it should be a
|
|
// union of active experiment names e.g. `'experiment1' | 'experiment2'`
|
|
export type ActiveExperiment = 'editor-redesign'
|
|
|
|
export const isInExperiment = (experiment: ActiveExperiment): boolean => {
|
|
const experiments = getMeta('ol-labsExperiments')
|
|
return Boolean(experiments?.includes(experiment))
|
|
}
|