spee.ch/client/build/components/ErrorDisplay/index.js

23 lines
704 B
JavaScript
Raw Normal View History

2018-06-04 09:09:33 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ErrorDisplay = function ErrorDisplay(_ref) {
var errorMessage = _ref.errorMessage,
defaultMessage = _ref.defaultMessage;
return _react.default.createElement("div", null, errorMessage ? _react.default.createElement("p", {
className: "info-message--failure"
}, errorMessage) : _react.default.createElement("p", {
className: "info-message"
}, defaultMessage));
};
var _default = ErrorDisplay;
exports.default = _default;