"use strict";

exports.__esModule = true;
exports.default = void 0;

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

var _propTypes = _interopRequireDefault(require("prop-types"));

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

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

var TimepickerDropdown =
/*#__PURE__*/
function (_React$PureComponent) {
  _inheritsLoose(TimepickerDropdown, _React$PureComponent);

  function TimepickerDropdown() {
    return _React$PureComponent.apply(this, arguments) || this;
  }

  var _proto = TimepickerDropdown.prototype;

  _proto.render = function render() {
    var children = this.props.children;
    return (
      /* eslint-disable */
      // Disabled due to onClick on div - needed to not close DropDown Prematurely
      _react.default.createElement("div", {
        className: 'cui-timepicker__dropdown-container',
        onClick: function onClick(e) {
          return e.stopPropagation();
        }
      }, _react.default.createElement("div", {
        className: 'cui-timepicker__dropdown'
      }, _react.default.createElement("div", {
        className: "inline-flex"
      }, children)))
      /* eslint-enable */

    );
  };

  return TimepickerDropdown;
}(_react.default.PureComponent);

TimepickerDropdown.displayName = 'TimepickerDropdown';
TimepickerDropdown.defaultProps = {
  children: null
};
TimepickerDropdown.propTypes = {
  /** Child component to display within Dropdown */
  children: _propTypes.default.node
};
var _default = TimepickerDropdown;
exports.default = _default;