Repository URL to install this package:
|
Version:
2.3.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const styled_1 = require("./styled");
/**
* Render the default wrapper for error children
*/
function defaultRenderWrapper(props) {
const {
className,
children
} = props;
return react_1.default.createElement(styled_1.ErrorComponentWrapper, {
className: className
}, children);
}
exports.defaultRenderWrapper = defaultRenderWrapper;
/**
* Render the default children view
*/
function defaultRenderError(props) {
const {
text,
children
} = props;
return react_1.default.createElement(styled_1.ErrorComponent, {
"aria-role": "alert",
"data-qa": "qa-error-message"
}, text || children);
}
exports.defaultRenderError = defaultRenderError; //# sourceMappingURL=renderProps.js.map