'use strict';

exports.__esModule = true;

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

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

var TimepickerDropdown = function (_React$PureComponent) {
  (0, _inherits3.default)(TimepickerDropdown, _React$PureComponent);

  function TimepickerDropdown() {
    (0, _classCallCheck3.default)(this, TimepickerDropdown);
    return (0, _possibleConstructorReturn3.default)(this, _React$PureComponent.apply(this, arguments));
  }

  TimepickerDropdown.prototype.render = function render() {
    var children = this.props.children;


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

    );
  };

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

TimepickerDropdown.displayName = 'TimepickerDropdown';
exports.default = TimepickerDropdown;


TimepickerDropdown.defaultProps = {
  children: null
};

module.exports = exports['default'];