UNPKG

@graphteon/juricode

Version:

We are forging the future with lines of digital steel

14 lines 583 B
export function loadFeatureFlag(flagName, defaultValue = false) { try { const stringValue = localStorage.getItem(`FEATURE_${flagName}`) || defaultValue.toString(); const value = !!JSON.parse(stringValue); return value; } catch (e) { return defaultValue; } } export const BILLING_SETTINGS = () => loadFeatureFlag("BILLING_SETTINGS"); export const HIDE_LLM_SETTINGS = () => loadFeatureFlag("HIDE_LLM_SETTINGS"); export const ENABLE_TRAJECTORY_REPLAY = () => loadFeatureFlag("TRAJECTORY_REPLAY"); //# sourceMappingURL=feature-flags.js.map