Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@sushiswap/wagmi / package / hooks / useNativeCurrency.ts
Size: Mime:
import { ChainId } from '@sushiswap/chain'
import { Native } from '@sushiswap/currency'
import { useMemo } from 'react'

export function useNativeCurrency({ chainId = ChainId.ETHEREUM }: { chainId?: number }): Native {
  return useMemo(() => Native.onChain(chainId), [chainId])
}