UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

14 lines 491 B
import Message from '../ui/Appearance/Message'; import FullPage from '../ui/Appearance/FullPage'; export default function getUiComponent(appearance) { appearance = appearance || 'message'; switch (appearance) { case 'message': return Message; case 'full-page': return FullPage; default: throw new Error("Appearance '" + appearance + "' is not supported by the editor."); } } //# sourceMappingURL=get-ui-component.js.map