'use strict';

exports.__esModule = true;

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 }; }

/** Input Error with required error */
var InputError = function InputError(_ref) {
  var error = _ref.error;

  return _react2.default.createElement(
    'div',
    { className: 'cui-input__messages', role: 'alert' },
    _react2.default.createElement(
      'div',
      { className: 'message' },
      error
    )
  );
};

InputError.displayName = 'InputError';

exports.default = InputError;
module.exports = exports['default'];