UNPKG

@atlaskit/editor-plugin-toolbar-lists-indentation

Version:

Toolbar lists and indentation plugin for @atlaskit/editor-core

7 lines • 340 B
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums'; import { ToolbarType } from '../../types'; const toolbarTypeToInputMethod = { [ToolbarType.PRIMARY]: INPUT_METHOD.TOOLBAR, [ToolbarType.FLOATING]: INPUT_METHOD.FLOATING_TB }; export const getInputMethod = toolbarType => toolbarTypeToInputMethod[toolbarType];