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

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

  var _proto = MenuItem.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(ReactBootstrapMenuItem, _extends({
      "data-test-automation-id": testAutomationId
    }, props), children);
  };

  return MenuItem;
}(React.Component);

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

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