import{RedocSchema as c,StoreProvider as p}from"@redocly/openapi-docs";import*as e from"react";import{Admonition as l}from"@redocly/theme";import{OpenApiComponentWrap as d}from"../styled.elements";function u(r){const{options:m,schemaResolved:o,schemaResolvedErrors:t,schema:n}=r;if(n||o){const s={openapi:"3.0.0",info:{version:"1",description:"test",title:"test"},paths:{},"x-root":o?.components?.schemas?.__root||n,components:{schemas:{...o?.components?.schemas}}};return e.createElement(d,null,e.createElement(p,{options:m,definition:s},t?.length?e.createElement(l,{name:"Problem in json-schema tag",type:"danger"},t.map((i,a)=>e.createElement("div",{key:a},i))):null,e.createElement(c,{pointer:"#/x-root",disableDeepLinks:!0})))}}export{u as JsonSchema};
