import{MoonProvider as a}from"@moonup/ethers";import{MoonSDK as m}from"@moonup/moon-sdk";import{useEffect as u,useState as s}from"react";function P(){let[o,e]=s(null),[n,r]=s(null),i=async()=>{let t=new m;r(t),t.connect();let d={chainId:1,address:"0x",SDK:t},l=new a(d);e(l)},c=async()=>{o&&(await o.disconnect(),e(null)),n&&(await n.disconnect(),r(null))};return u(()=>{i()},[]),{moonProvider:o,moon:n,initialize:i,disconnect:c}}export{P as useMoonEthers};
//# sourceMappingURL=useMoonEthers.mjs.map