UNPKG

@suiware/kit

Version:

Opinionated React components and hooks for building Sui dApps.

22 lines (19 loc) 843 B
import { NetworkConfig, Theme } from '@mysten/dapp-kit'; import { SuiClient } from '@mysten/sui/client'; import { QueryClient } from '@tanstack/react-query'; import { FC, PropsWithChildren } from 'react'; type NetworkConfigs<T extends NetworkConfig | SuiClient = NetworkConfig | SuiClient> = Record<string, T>; interface ISuiProviderProps extends PropsWithChildren { customQueryClient?: QueryClient; customNetworkConfig?: NetworkConfigs<NetworkConfig | SuiClient> | undefined; defaultNetwork?: string; walletAutoConnect?: boolean; /** * @deprecated Use `walletSlushName` instead. */ walletStashedName?: string; walletSlushName?: string; themeSettings?: Theme | null; } declare const SuiProvider: FC<ISuiProviderProps>; export { type ISuiProviderProps, type NetworkConfigs, SuiProvider as default };