import{d as e,s as t}from"./hooks.module-BrXTvcfS.js";import{w as n}from"./i18n-BaLR3UdQ.js";import{t as r}from"./jsxRuntime.module-Cao1NCKs.js";import{D as i}from"./hooks-ClTXKdUl.js";import{n as a}from"./File-Bh58GRWR.js";import{n as o}from"./SplitEditor-Hd815xEd.js";import{t as s}from"./IconPackPreview-CWbRx-5L.js";e();function c(e){let[i,a]=t(``),c=e.note.type===`file`;return r(o,{noteType:`code`,...e,forceReadOnly:c,onContentChanged:a,editorContent:c?r(l,{note:e.note}):void 0,previewContent:r(s,{note:e.note,content:i}),forceOrientation:n()?`horizontal`:`vertical`})}function l({note:e}){return r(`div`,{className:`icon-pack-file-source`,children:r(a,{content:i(e)?.content??``})})}export{c as default};