'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _Label = require('../../styles/cspace-input/Label.css');

var _Label2 = _interopRequireDefault(_Label);

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

var propTypes = {
  children: _react.PropTypes.node
};

/**
 * A label for an input.
 */
function Label(props) {
  var children = props.children;

  // FIXME: Set the htmlFor prop to associate the labeled control.

  return (
    /* eslint-disable jsx-a11y/label-has-for */
    _react2.default.createElement(
      'label',
      { className: _Label2.default.common },
      children
    )
    /* eslint-enable jsx-a11y/label-has-for */

  );
}

Label.propTypes = propTypes;