import{useMemo as t}from"react";import{W as e}from"./context-BKnOUECq.mjs";import{u as r}from"./internal-context-dfitw7Ot.mjs";const i=()=>{let{walletProxy:i,initializeWalletProxy:a,client:s}=r();return t((()=>({signWithUserSigner:async({message:t,targetAppId:r})=>{let n=i??await a(e);if(!n)throw Error("Wallet proxy not initialized");let o=await s.getAccessToken();if(!o)throw Error("User must be authenticated");let{signature:l}=await n.signWithUserSigner({accessToken:o,message:t,targetAppId:r});return{signature:l}}})),[i,s])};export{i as u};
//# sourceMappingURL=use-sign-with-user-signer-CQI6hUH7.mjs.map
