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 ReactBootstrapDropdown from 'react-bootstrap/lib/Dropdown';
export var Dropdown =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(Dropdown, _React$Component);

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

  var _proto = Dropdown.prototype;

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

    return React.createElement(ReactBootstrapDropdown, _extends({
      "data-test-automation-id": testAutomationId
    }, props), children);
  };

  return Dropdown;
}(React.Component);

_defineProperty(Dropdown, "Menu", ReactBootstrapDropdown.Menu);

_defineProperty(Dropdown, "Toggle", ReactBootstrapDropdown.Toggle);

_defineProperty(Dropdown, "propTypes", {
  testAutomationId: PropTypes.string,
  children: PropTypes.node.isRequired
});

_defineProperty(Dropdown, "defaultProps", {
  testAutomationId: null,
  children: null
});