UNPKG

@web3auth/no-modal

Version:
17 lines (14 loc) 532 B
import { createContext, useContext, createElement } from 'react'; import { useWalletServicesContextValue } from './useWalletServicesContextValue.js'; const WalletServicesContext = createContext(null); function WalletServicesContextProvider({ children, context }) { const web3AuthContext = useContext(context); const value = useWalletServicesContextValue(web3AuthContext); return createElement(WalletServicesContext.Provider, { value }, children); } export { WalletServicesContext, WalletServicesContextProvider };