"use strict";

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

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

var _react = _interopRequireDefault(require("react")), _propTypes = _interopRequireDefault(require("prop-types")), _amosIcon = _interopRequireDefault(require("amos-icon")), ActionItem = function(e) {
  var t = e.icon, r = e.onClick, i = e.tip;
  return _react.default.createElement("div", {
    className: "action-extra-item",
    onClick: r,
    title: i
  }, _react.default.createElement(_amosIcon.default, {
    icon: t
  }));
};

ActionItem.displayName = "ActionItem", ActionItem.propTypes = {
  icon: _propTypes.default.string,
  onClick: _propTypes.default.func,
  tip: _propTypes.default.string
};

var _default = ActionItem;

exports.default = _default;