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

27 lines
916 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 }; }
2018-06-05 23:24:54 +02:00
var FormFeedbackDisplay = function FormFeedbackDisplay(_ref) {
2018-06-04 09:09:33 +02:00
var errorMessage = _ref.errorMessage,
defaultMessage = _ref.defaultMessage;
2018-06-09 02:23:11 +02:00
return _react.default.createElement("div", {
2018-06-08 17:50:25 +02:00
className: 'form-feedback'
2018-06-09 02:23:11 +02:00
}, errorMessage ? _react.default.createElement("p", {
className: 'text--small text--failure'
}, errorMessage) : _react.default.createElement("div", null, defaultMessage ? _react.default.createElement("p", {
className: 'text--small text--secondary'
}, defaultMessage) : _react.default.createElement("p", {
className: 'text--small'
}, "\xA0")));
2018-06-04 09:09:33 +02:00
};
2018-06-05 23:24:54 +02:00
var _default = FormFeedbackDisplay;
2018-06-04 09:09:33 +02:00
exports.default = _default;