"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NewTagItemEditable = void 0;
var _react = _interopRequireDefault(require("react"));
var _TagItemEditable = require("./TagItemEditable");
var _mobxReactLite = require("mobx-react-lite");
var _bexCore = require("@wix/bex-core");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/Tags/ManageTags/ManageTagsModal/NewTagItemEditable.tsx";
const _NewTagItemEditable = ({
  state
}) => {
  const handleApprove = name => {
    state.createTagFromList(name);
  };
  const handleCancel = () => {
    state.handleCancelEditCtaClick();
  };
  return /*#__PURE__*/_react.default.createElement(_TagItemEditable.TagItemEditable, {
    isLastTag: true,
    errorMessage: state.editedTagErrorMessage,
    onApprove: handleApprove,
    onCancel: handleCancel,
    maxLength: _bexCore.TAG_MAX_LENGTH,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 5
    }
  });
};
const NewTagItemEditable = exports.NewTagItemEditable = (0, _mobxReactLite.observer)(_NewTagItemEditable);
//# sourceMappingURL=NewTagItemEditable.js.map