"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = void 0;

var _react = _interopRequireDefault(require("react")), _amosFramework = require("amos-framework"), _propTypes = _interopRequireDefault(require("prop-types")), ElementEditor = function(e) {
  var r = e.label;
  return _react.default.createElement(_amosFramework.Editable, {
    innerClassName: "element-editor",
    defaultValue: r,
    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 = _default;