UNPKG

nimbus-sui-kit

Version:
23 lines (17 loc) 511 B
import { BaseError, Chain, WalletContextState } from "@suiet/wallet-kit"; export type WalletState = WalletContextState & { toggleSelect: () => any; }; export interface WidgetConfig { walletFn: (input: WalletState) => any; onConnectSuccess?: (walletName: string) => void; onConnectError?: (error: BaseError) => void; } export interface WidgetConfigPartialProps { config?: Partial<WidgetConfig>; } export type WidgetProps = { autoConnect?: boolean; chains?: Chain[]; config: WidgetConfig; };