UNPKG

@web3auth/no-modal

Version:
11 lines (8 loc) 342 B
import { useContext } from 'react'; import { WalletServicesContext } from '../context/WalletServicesInnerContext.js'; const useWalletServicesPlugin = () => { const context = useContext(WalletServicesContext); if (!context) throw new TypeError("WalletServicesContext not found"); return context; }; export { useWalletServicesPlugin };