import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import React from "react";
import { i18n } from '@fishx/i18n';
import Spacer from "./Spacer";
import { ReactComponent as SpacerIcon } from "@svgr/webpack!../../../assets/icons/spacer-icon.svg";
import "./actions";
import { PreviewBox } from "../../../utils";
export default (function () {
  return {
    name: "pb-editor-page-element-spacer",
    type: "pb-editor-page-element",
    elementType: "spacer",
    toolbar: {
      title: i18n('PAGEBUIDER_ELEMENT_SORT_SPACER'),
      group: "pb-editor-element-group-layout",
      toolBarPreview: /*#__PURE__*/React.createElement(SpacerIcon, null),
      preview: function preview() {
        return /*#__PURE__*/React.createElement(PreviewBox, null, /*#__PURE__*/React.createElement(SpacerIcon, null));
      }
    },
    settings: ["pb-editor-page-element-settings-style-set"],
    target: ["block", "column"],
    create: function create() {
      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      return _objectSpread({
        type: "spacer",
        data: {
          settings: {}
        }
      }, options);
    },
    render: function render(props) {
      return /*#__PURE__*/React.createElement(Spacer, props);
    }
  };
});
//# sourceMappingURL=index.js.map