import{t as r}from"./use-ws-BIe6kKa2.js";import{f as n,b as o}from"./index-Z_QI94Zg.js";import"./createLucideIcon-CsWFljth.js";import"./markdown-9_JKOUHQ.js";import"./button-D8qrc3hb.js";import"./terminal-CuAYwdh-.js";import"./mermaid-C0IQv4mH.js";const c=n(e=>({isOpen:!1,filePath:null,initialContent:null,openFile:async i=>{const t=await o.readFile(i);if(t.isErr()){r.error("Failed to open file",{description:t.error.message});return}e({isOpen:!0,filePath:i,initialContent:t.value.content})},closeEditor:()=>e({isOpen:!1,filePath:null,initialContent:null})}));export{c as useInternalEditorStore};
