UNPKG

@pushchain/ui-kit

Version:

Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.

15 lines 489 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWalletContext = void 0; const react_1 = require("react"); const WalletContextMap = new Map(); const getWalletContext = (uid = 'default') => { let ctx = WalletContextMap.get(uid); if (!ctx) { ctx = (0, react_1.createContext)(null); WalletContextMap.set(uid, ctx); } return ctx; }; exports.getWalletContext = getWalletContext; //# sourceMappingURL=WalletContextMap.js.map