@atlaskit/adf-utils
Version:
Set of utilities to traverse, modify and create ADF documents.
19 lines (18 loc) • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.emoji = void 0;
var emoji = exports.emoji = function emoji(attrs, options) {
if (options !== null && options !== void 0 && options.marks) {
return {
type: 'emoji',
attrs: attrs,
marks: options === null || options === void 0 ? void 0 : options.marks
};
}
return {
type: 'emoji',
attrs: attrs
};
};