"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.renderListLic = exports.renderListItem = exports.renderList = void 0;
var _react = _interopRequireDefault(require("react"));
var _elementTypes = require("../../../constants/element-types");
require("./style.css");
const renderList = (props, editor) => {
  const {
    attributes,
    children,
    element: node
  } = props;
  const Tag = node.type === _elementTypes.ORDERED_LIST ? 'ol' : 'ul';
  return /*#__PURE__*/_react.default.createElement(Tag, Object.assign({
    "data-id": node.id,
    "data-root": "true",
    className: "sf-list-line"
  }, attributes), children);
};
exports.renderList = renderList;
const renderListItem = (props, editor) => {
  const {
    attributes,
    children,
    element
  } = props;
  return /*#__PURE__*/_react.default.createElement("li", Object.assign({
    "data-id": element.id,
    "data-root": "true"
  }, attributes), children);
};
exports.renderListItem = renderListItem;
const renderListLic = (props, editor) => {
  const {
    attributes,
    children,
    element
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", Object.assign({
    "data-id": element.id
  }, attributes), children);
};
exports.renderListLic = renderListLic;