"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RedocSchema=void 0;const jsx_runtime_1=require("react/jsx-runtime"),jotai_1=require("jotai"),models_1=require("../../models"),common_1=require("../common"),styled_components_1=require("./styled.components"),Schema_1=require("../Schema"),store_1=require("../../jotai/store"),RedocSchema=({pointer:e,schema:o,disableDeepLinks:r,slug:s})=>{const{options:t,parser:i}=(0,jotai_1.useAtomValue)(store_1.globalStoreAtom),m=o||{$ref:e},c=(0,models_1.getSchema)({parser:i,schemaOrRef:m,pointer:e||"",options:t,deps:{operation:{pointer:"RedocSchema"}}});return(0,jsx_runtime_1.jsx)(common_1.Row,{children:(0,jsx_runtime_1.jsx)(styled_components_1.FullWidthPanel,{children:(0,jsx_runtime_1.jsx)(Schema_1.Schema,{schema:c,level:1,disableDeepLinks:r,slug:s})})})};exports.RedocSchema=RedocSchema;
//# sourceMappingURL=RedocSchema.js.map