"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
const withPropsEditor = function (editor) {
  let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  let newEditor = editor;
  if (props.editorApi) {
    newEditor.api = props.editorApi;
  }
  if (props.onSave) {
    newEditor.onSave = props.onSave;
  }
  if (props.columns) {
    newEditor.columns = props.columns;
  }
  newEditor.isImageUploadOnly = props.isImageUploadOnly === undefined ? true : Boolean(props.isImageUploadOnly);
  newEditor.isSupportMultipleFiles = Boolean(props.isSupportMultipleFiles);
  return newEditor;
};
var _default = exports.default = withPropsEditor;