"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComponentNotFound = exports.createErrorFallback = void 0;
var tslib_1 = require("tslib");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
function createErrorFallback(cmpKey, id) {
    return function ComponentErrorFallback(props) {
        return (react_1.default.createElement("div", { style: { color: 'red', display: 'flex', alignItems: 'center' }, title: "\u7EC4\u4EF6" + cmpKey + " " + id + "\u53D1\u751F\u4E86\u9519\u8BEF\uFF0C\u9519\u8BEF\u4FE1\u606F\uFF1A" + props.error },
            cmpKey,
            "\u7EC4\u4EF6\u9519\u8BEF"));
    };
}
exports.createErrorFallback = createErrorFallback;
function ComponentNotFound(_a) {
    var _b = _a.module, module = _b === void 0 ? '' : _b, component = _a.component;
    return (react_1.default.createElement("div", { style: { color: 'red' } },
        "\u7EC4\u4EF6",
        react_1.default.createElement("em", null, module + ":" + component),
        "\u672A\u627E\u5230"));
}
exports.ComponentNotFound = ComponentNotFound;
//# sourceMappingURL=error.js.map