@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) • 350 B
JavaScript
'use client';
import { useContext } from 'react';
import { ModalContext } from './Provider.mjs';
/** @internal */
var useModal = function useModal() {
var context = useContext(ModalContext);
if (!context) throw new Error("useModal must be used within ModalProvider");
return context;
};
export { useModal };
//# sourceMappingURL=Hook.mjs.map