"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RawViewer = void 0;
const tslib_1 = require("tslib");
const ui_kit_1 = require("@stoplight/ui-kit");
const React = tslib_1.__importStar(require("react"));
const REGISTERED_LANGUAGES = ['xml', 'html', 'json'];
exports.RawViewer = ({ type, content }) => {
    return (React.createElement("div", { className: "RequestMaker__RawViewer" },
        React.createElement(ui_kit_1.CodeViewer, { language: REGISTERED_LANGUAGES.includes(type) ? type : 'text', value: content, showLineNumbers: true, className: "p-5" })));
};
//# sourceMappingURL=RawViewer.js.map