import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import React from "react";
import Document from "./Document";
import { defaultCols } from "../../../../config/pluginConfig";
export default (function () {
  return {
    name: "pb-editor-page-element-document",
    type: "pb-editor-page-element",
    elementType: "document",
    create: function create() {
      var _options$data;

      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      return {
        type: "document",
        elements: [],
        data: {
          settings: _objectSpread({
            cols: defaultCols
          }, (_options$data = options.data) === null || _options$data === void 0 ? void 0 : _options$data.settings)
        }
      };
    },
    render: function render(props) {
      return /*#__PURE__*/React.createElement(Document, props);
    }
  };
});
//# sourceMappingURL=index.js.map