UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

12 lines 372 B
import { fg } from '@atlaskit/platform-feature-flags'; import { editorUGCTokens, editorUGCTokensRefreshed } from './editor-ugc-token-names'; function editorUGCToken(path) { var tokens; if (fg('platform_editor_typography_ugc')) { tokens = editorUGCTokensRefreshed; } else { tokens = editorUGCTokens; } return tokens[path]; } export default editorUGCToken;