UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

23 lines 1.01 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PureComponent } from 'react'; import styled from 'styled-components'; import Emoji from '../../ui/Emoji'; // tslint:disable-next-line:variable-name var Wrapper = (_a = ["\n userSelect: all;\n"], _a.raw = ["\n userSelect: all;\n"], styled.span(_a)); var EmojiNode = (function (_super) { tslib_1.__extends(EmojiNode, _super); function EmojiNode() { return _super !== null && _super.apply(this, arguments) || this; } EmojiNode.prototype.render = function () { var _a = this.props, node = _a.node, providerFactory = _a.providerFactory; var _b = node.attrs, shortName = _b.shortName, id = _b.id, text = _b.text; return (React.createElement(Wrapper, null, React.createElement(Emoji, { providers: providerFactory, id: id, shortName: shortName, fallback: text }))); }; return EmojiNode; }(PureComponent)); export default EmojiNode; var _a; //# sourceMappingURL=emoji.js.map