"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

var _react = _interopRequireDefault(require("react"));

var _classnames = _interopRequireDefault(require("classnames"));

var _precls = _interopRequireDefault(require("../../precls"));

require("./index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _default(props) {
  var onClick = props.onClick,
      _props$isAutoShow = props.isAutoShow,
      isAutoShow = _props$isAutoShow === void 0 ? true : _props$isAutoShow,
      _props$isClose = props.isClose,
      isClose = _props$isClose === void 0 ? false : _props$isClose,
      className = props.className,
      onMouseEnter = props.onMouseEnter,
      onMouseLeave = props.onMouseLeave;
  return /*#__PURE__*/_react["default"].createElement("div", {
    onClick: onClick,
    onMouseEnter: onMouseEnter,
    onMouseLeave: onMouseLeave,
    className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon"), className, _defineProperty({}, "".concat(_precls["default"], "--hide-icon--show"), !isAutoShow))
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon--hover"))
  }), /*#__PURE__*/_react["default"].createElement("span", {
    className: "tu-icon-double-".concat(isClose ? "right" : "left")
  }));
}