import{r,j as s}from"./index-5a079431.js";import{M as a}from"./MonacoEditor-d70c56be.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};
