UNPKG

@turnkey/sdk-react-native

Version:
14 lines (11 loc) 369 B
import { useContext } from 'react'; import { TurnkeyContext } from '../contexts/TurnkeyContext.mjs'; const useTurnkey = () => { const context = useContext(TurnkeyContext); if (!context) { throw new Error("useTurnkey must be used within an TurnkeyProvider"); } return context; }; export { useTurnkey }; //# sourceMappingURL=use-turnkey.mjs.map