UNPKG

@suiware/kit

Version:

Opinionated React components and hooks for building Sui dApps.

18 lines (15 loc) 747 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; walletStashedName?: string; themeSettings?: Theme | null; } declare const SuiProvider: FC<ISuiProviderProps>; export { type ISuiProviderProps, type NetworkConfigs, SuiProvider as default };