UNPKG

@turnkey/react-wallet-kit

Version:

The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React applications.

14 lines (11 loc) 359 B
'use client'; import { useContext } from 'react'; import { ClientContext } from './Types.mjs'; /** @internal */ var useTurnkey = function useTurnkey() { var context = useContext(ClientContext); if (!context) throw new Error("useTurnkey must be used within TurnkeyProvider"); return context; }; export { useTurnkey }; //# sourceMappingURL=Hook.mjs.map