import{r,j as s}from"./index-gmBbBgD4.js";import{M as a}from"./MonacoEditor-SHlVT114.js";function u({schemaUri:e,...o}){const t=r.useMemo(()=>({validate:!0,schemaRequest:"error",enableSchemaRequest:!0,schemas:e?[{uri:new URL(e,window.location.href).href,fileMatch:["*"]}]:[]}),[e]);return s.jsx(a,{language:"json",diagnostics:t,...o})}export{u as default};
