mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
9028ec7b29
GitOrigin-RevId: e616d42af0d54f9acdf40b24fbfcbed06f349266
14 lines
462 B
TypeScript
14 lines
462 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 =
|
|
| 'monthly-texlive'
|
|
| 'ai-workbench'
|
|
| 'bibtex-visual-editor'
|
|
|
|
export const isInExperiment = (experiment: ActiveExperiment): boolean => {
|
|
const experiments = getMeta('ol-labsExperiments')
|
|
return Boolean(experiments?.includes(experiment))
|
|
}
|