@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
18 lines • 793 B
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { PureComponent } from 'react';
import Mention from '../../ui/Mention';
var MentionNode = (function (_super) {
tslib_1.__extends(MentionNode, _super);
function MentionNode() {
return _super !== null && _super.apply(this, arguments) || this;
}
MentionNode.prototype.render = function () {
var _a = this.props, node = _a.node, providerFactory = _a.providerFactory;
var _b = node.attrs, id = _b.id, text = _b.text, accessLevel = _b.accessLevel;
return (React.createElement(Mention, { id: id, text: text, accessLevel: accessLevel, providers: providerFactory }));
};
return MentionNode;
}(PureComponent));
export default MentionNode;
//# sourceMappingURL=mention.js.map