"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = void 0;
var _react = _interopRequireDefault(require("react")),
  _amosFramework = require("amos-framework"),
  _propTypes = _interopRequireDefault(require("prop-types"));

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}
var ElementEditor = function(e) {
  e = e.label;
  return _react.default.createElement(_amosFramework.Editable, {
    innerClassName: "element-editor",
    defaultValue: e,
    size: "sm",
    editIcon: !1,
    buttonProps: {
      transparent: !0,
      size: "sm",
      style: {
        margin: 0
      }
    },
    innerValueStyle: {
      overflow: "hidden",
      textOverflow: "ellipsis",
      whiteSpace: "nowrap",
      display: "inline-block"
    },
    inputProps: {
      size: "sm"
    },
    showOkCancel: !1
  })
};
ElementEditor.displayName = "ElementEditor", ElementEditor.propTypes = {
  label: _propTypes.default.string,
  eleId: _propTypes.default.string,
  editCallBack: _propTypes.default.func
};
var _default = ElementEditor;
exports.default = ElementEditor, module.exports = exports.default;
