'use strict';

import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import BSTooltip from 'react-bootstrap/lib/Tooltip';
export var Tooltip =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(Tooltip, _React$Component);

  function Tooltip() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tooltip.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        className = _this$props.className,
        props = _objectWithoutPropertiesLoose(_this$props, ["children", "className"]);

    return React.createElement(BSTooltip, _extends({
      className: classnames(className, 'bootstrap-rc'),
      "data-test-automation-id": "tooltip"
    }, props), children);
  };

  return Tooltip;
}(React.Component);

_defineProperty(Tooltip, "propTypes", Object.assign({}, BSTooltip.propTypes, {
  children: PropTypes.node.isRequired,
  className: PropTypes.string
}));

_defineProperty(Tooltip, "defaultProps", {
  className: null
});