"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuestionStory = QuestionStory;
const react_1 = __importDefault(require("react"));
const Exam_1 = require("../../../../src/components/exam/Exam");
const Question_1 = __importDefault(require("../../../../src/components/exam/Question"));
const dom_utils_1 = require("../../../../src/dom-utils");
const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
const ExamComponentWrapper_1 = require("../../utils/ExamComponentWrapper");
function QuestionStory({ examXml }) {
    const doc = (0, parseExam_1.default)(examXml, true);
    const element = (0, dom_utils_1.queryAll)(doc.documentElement, 'question')[0];
    return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc },
        react_1.default.createElement(Question_1.default, { element: element, renderChildNodes: (0, Exam_1.renderChildNodesBase)(), renderComponentOverrides: {} })));
}
//# sourceMappingURL=Question.story.js.map