import{j as e,A as l}from"./main.js";import{M as m}from"./config-CPAyKrGO.js";function f({value:o,onChange:a,language:n,readOnly:t=!1,height:r="400px",className:s}){const i=m[n];return e.jsx("div",{className:`border rounded-md overflow-hidden ${s||""}`,children:e.jsx(l,{height:r,language:i,value:o,theme:"vs",options:{readOnly:t,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{f as M};
