UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

13 lines (10 loc) 366 B
import { useConfig } from 'wagmi'; /** Determines whether the current wagmi configuration supports a given chain. */ function useChainIsSupported(chainId) { const { chains } = useConfig(); if (!chainId) return false; return chains.some((x) => x.id === chainId); } export { useChainIsSupported }; //# sourceMappingURL=useChainIsSupported.js.map