@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
20 lines (19 loc) • 738 B
TypeScript
import React from 'react';
import type { useSwitchChain } from 'wagmi';
import { type BoxProps } from '../../components/Box/Box';
interface ChainProps {
chainId: number;
currentChainId: number;
switchChain: ReturnType<typeof useSwitchChain>['switchChain'];
chainIconSize: BoxProps['height'];
isLoading: boolean;
idx: number;
}
export declare function ChainLineItem({ chainId, chainIconSize, gap, hideChainName, }: {
chainId: number;
chainIconSize: BoxProps['height'];
gap?: BoxProps['gap'];
hideChainName?: boolean;
}): React.JSX.Element | null;
declare const Chain: ({ chainId, currentChainId, switchChain, chainIconSize, isLoading, idx, }: ChainProps) => React.JSX.Element;
export default Chain;