import{j as e}from"./vendor-react.js";import{d as l}from"./vendor-monaco.js";import{M as m}from"./config.js";function p({value:o,onChange:a,language:n,readOnly:r=!1,height:t="400px",className:i}){const s=m[n];return e.jsx("div",{className:`border rounded-md overflow-hidden ${i||""}`,children:e.jsx(l,{height:t,language:s,value:o,theme:"vs",options:{readOnly:r,minimap:{enabled:!1},lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0,fontSize:13,tabSize:2},onChange:d=>a?.(d||""),loading:e.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:"Loading editor..."})})})}export{p as M};
