UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

22 lines 696 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PureComponent } from 'react'; var isSub = function (type) { return type === 'sub'; }; var SubSup = (function (_super) { tslib_1.__extends(SubSup, _super); function SubSup() { return _super !== null && _super.apply(this, arguments) || this; } SubSup.prototype.render = function () { var props = this.props; if (isSub(props.type)) { return React.createElement("sub", null, props.children); } return React.createElement("sup", null, props.children); }; return SubSup; }(PureComponent)); export default SubSup; //# sourceMappingURL=subsup.js.map