UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

23 lines (22 loc) 1.25 kB
import React from 'react'; import type { TokenTransferSourceChainsAndAssets } from '~/modals/CheckoutModal/TransferToken/TransferToken'; import type { BaseActiveDropdownItemProps } from './BaseActiveDropdownItem'; import { type BaseDropdownProps } from './BaseDropdown'; interface ChainDropdownProps { assets: TokenTransferSourceChainsAndAssets; chainIds?: number[]; selectedChainId?: number; onChainSelected: (chainId: number | undefined, /** * If true, it will trigger automatic updates for the matching token in the parent component. */ autoUpdate?: boolean) => void; /** Provides option to allow going back to unselected state and displays that state as a selectable option */ allowUnselect?: boolean; activeItemProps?: BaseDropdownProps['activeItemProps']; openDropdownBackgroundColor?: BaseDropdownProps['openDropdownBackgroundColor']; size?: BaseActiveDropdownItemProps['size']; isLoading?: BaseDropdownProps['isLoading']; } export declare const ChainDropdown: ({ assets, chainIds: chains, selectedChainId: propSelectedChainId, allowUnselect, onChainSelected, activeItemProps, size, openDropdownBackgroundColor, isLoading, }: ChainDropdownProps) => React.JSX.Element; export {};