"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenderTestResult = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = tslib_1.__importDefault(require("react"));
const TestContext_1 = require("../../CommonUI/Testing/TestContext");
const RenderTestResult = ({ definition }) => {
    const testContext = react_1.default.useContext(TestContext_1.TestContext);
    const resultitem = testContext?.findItem(definition._id);
    if (!resultitem) {
        return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
    }
    return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { dangerouslySetInnerHTML: {
                __html: resultitem.result || "",
            } }) }));
};
exports.RenderTestResult = RenderTestResult;
//# sourceMappingURL=TextMergeRenderTestResult.js.map