import{jsx as e}from"react/jsx-runtime";import{useAtomValue as n}from"jotai";import{getSchema as p}from"../../models/index.js";import{Row as l}from"../common/index.js";import{FullWidthPanel as h}from"./styled.components.js";import{Schema as f}from"../Schema/index.js";import{globalStoreAtom as d}from"../../jotai/store.js";const A=({pointer:o,schema:r,disableDeepLinks:m,slug:t,onOneOfChange:s})=>{const{options:a,parser:c}=n(d),i=p({parser:c,schemaOrRef:r||{$ref:o},pointer:o||"",options:a,deps:{operation:{pointer:"RedocSchema"}}});return e(l,{children:e(h,{children:e(f,{schema:i,level:1,disableDeepLinks:m,slug:t,onOneOfChange:s})})})};export{A as RedocSchema};
