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

/** Input Error with required error */
var InputError = function InputError(_ref) {
  var error = _ref.error;
  return _react.default.createElement("div", {
    className: "cui-input__messages",
    role: "alert"
  }, _react.default.createElement("div", {
    className: "message"
  }, error));
};

InputError.propTypes = {
  /** Error for input */
  error: _propTypes.default.string.isRequired
};
InputError.displayName = 'InputError';
var _default = InputError;
exports.default = _default;