import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{k as t}from"./vendor-markdown-DngssFHR.js";import{W as n}from"./index-JB73_g7R.js";var r=e(t(),1),i=new Map;function a(e){let[t,a]=(0,r.useState)(e?i.get(e)??null:null);return(0,r.useEffect)(()=>{if(e){if(i.has(e)){a(i.get(e));return}n().then(t=>{for(let e of t)i.set(e.id,e.projectDir);a(i.get(e)??null)}).catch(()=>{})}},[e]),t}export{a as t};