mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
8 lines
201 B
TypeScript
8 lines
201 B
TypeScript
import { useWallet } from './useWallet';
|
|
|
|
export const useIsSupportedChain = () => {
|
|
const { chainId, chains } = useWallet();
|
|
|
|
return !chainId || !!chains.find((chain) => chain.id === chainId);
|
|
};
|