UNPKG

@daimo/pay

Version:

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

11 lines (8 loc) 270 B
import { useConfig } from 'wagmi'; function useChainIsSupported(chainId) { const { chains } = useConfig(); if (!chainId) return false; return chains.some((x) => x.id === chainId); } export { useChainIsSupported }; //# sourceMappingURL=useChainIsSupported.js.map