"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = require("vue");
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
var _useConfigInject2 = _interopRequireDefault(require("../_util/hooks/useConfigInject"));
var imageOperationTipProps = function imageOperationTipProps() {
  return {
    title: String
  };
};
var ImageOperationTip = (0, _vue.defineComponent)({
  name: 'ImageOperationTip',
  props: imageOperationTipProps(),
  setup: function setup(props, _ref) {
    var slots = _ref.slots;
    var _useConfigInject = (0, _useConfigInject2.default)('tooltip', props),
      prefixCls = _useConfigInject.prefixCls;
    return function () {
      var _slots$default;
      return (0, _vue.createVNode)(_Tooltip.default, {
        "placement": "bottom",
        "overlayClassName": "".concat(prefixCls.value, "-image-operation")
      }, {
        default: function _default() {
          return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
        },
        title: props.title
      });
    };
  }
});
var _default2 = ImageOperationTip;
exports.default = _default2;