UNPKG

@turnkey/react-wallet-kit

Version:

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

16 lines (12 loc) 367 B
'use client'; 'use strict'; var react = require('react'); var Types = require('./Types.js'); /** @internal */ const useTurnkey = () => { const context = react.useContext(Types.ClientContext); if (!context) throw new Error("useTurnkey must be used within TurnkeyProvider"); return context; }; exports.useTurnkey = useTurnkey; //# sourceMappingURL=Hook.js.map