var babelHelpers = require('./babel-helpers.js');
/**
 * MUI React Caret Module
 * @module react/caret
 */

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = babelHelpers.interopRequireDefault(_react);

/**
 * Caret constructor
 * @class
 */
var Caret = function (_React$Component) {
  babelHelpers.inherits(Caret, _React$Component);

  function Caret() {
    babelHelpers.classCallCheck(this, Caret);
    return babelHelpers.possibleConstructorReturn(this, (Caret.__proto__ || Object.getPrototypeOf(Caret)).apply(this, arguments));
  }

  babelHelpers.createClass(Caret, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          reactProps = babelHelpers.objectWithoutProperties(_props, ['children']);


      return _react2.default.createElement('span', babelHelpers.extends({}, reactProps, {
        className: 'mui-caret ' + this.props.className
      }));
    }
  }]);
  return Caret;
}(_react2.default.Component);

/** Define module API */


Caret.defaultProps = {
  className: ''
};
exports.default = Caret;
module.exports = exports['default'];