"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExamStory = void 0;
const react_1 = __importDefault(require("react"));
const src_1 = require("../../../../src");
const examServerApi_1 = require("../../../examServerApi");
const ExamStory = ({ masteredExam }) => {
    const doc = new DOMParser().parseFromString(masteredExam.xml, 'application/xml');
    return (react_1.default.createElement(src_1.Exam, { attachmentsURL: '/attachments',
        resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`,
        doc,
        examServerApi: examServerApi_1.examServerApi }));
};
exports.ExamStory = ExamStory;
//# sourceMappingURL=Exam.story.js.map