"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _slateReact = require("slate-react");
var _plugins = require("../plugins");
const CustomLeaf = props => {
  const editor = (0, _slateReact.useSlateStatic)();
  const [renderText] = _plugins.TextPlugin.renderElements;
  return renderText(props, editor);
};
const renderLeaf = props => {
  return /*#__PURE__*/_react.default.createElement(CustomLeaf, props);
};
var _default = exports.default = renderLeaf;