import{o as e}from"./rolldown-runtime.js";import{n as t,t as n}from"./jsx-runtime.js";import{Tt as r}from"./useActiveWallet-CEs8euQ3.js";var i=n(),a=e(t(),1),o=r((()=>({}))),s=({children:e,configPlugins:t})=>((0,a.useEffect)((()=>{if(t&&t.length!==0)return o.setState(Object.fromEntries(t.map((e=>[e.id,e])))),()=>{o.setState(Object.fromEntries(t.map((e=>[e.id,void 0]))))}}),[t]),(0,i.jsx)(i.Fragment,{children:e})),c=e=>o.getState()[e],l=()=>(0,a.useCallback)((e=>c(e)),[]);export{c as n,s as r,l as t};