import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import * as React from "react";
import { createTable } from "../../../utils";
import _preview from "../emptyBlock/preview.png";
export default {
  name: "pb-editor-block-table",
  type: "pb-editor-block",
  category: "general",
  title: "Table block",
  create: function create() {
    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return createTable(_objectSpread(_objectSpread({}, options), {}, {
      elements: []
    }));
  },
  image: {
    meta: {
      width: 500,
      height: 73,
      aspectRatio: 500 / 73
    }
  },
  preview: function preview() {
    return /*#__PURE__*/React.createElement("img", {
      src: _preview,
      alt: "Table block"
    });
  }
};
//# sourceMappingURL=index.js.map