@turnkey/sdk-react-native
Version:
React Native SDK
14 lines (11 loc) • 369 B
JavaScript
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