"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _FIcon = _interopRequireDefault(require("../../../commons/icons/FIcon.cjs"));
var _reactstrap = require("reactstrap");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var FFClear = _ref => {
  var {
    hasValue,
    onClear
  } = _ref;
  return /*#__PURE__*/_react.default.createElement(_reactstrap.InputGroupText, {
    onClick: hasValue ? ev => onClear(ev) : () => {},
    style: {
      cursor: hasValue ? 'pointer' : 'not-allowed',
      zIndex: "2",
      opacity: hasValue ? 1 : 0.5
    }
  }, /*#__PURE__*/_react.default.createElement(_FIcon.default, {
    icon: "cross"
  }));
};
var _default = FFClear;
exports.default = _default;