@suiware/kit
Version:
Opinionated React components and hooks for building Sui dApps.
18 lines (15 loc) • 708 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
/**
* The `NetworkType` component renders the name of the currently selected network or disconnected if no wallet connected.
*
* It automatically re-fetches the network type from wallet every 3 seconds.
* Every network is displayed in its own color:
* - disconnected: tomato
* - localnet/devnet/testnet: amber
* - mainnet: green
* Please note the user wallet is the single point of truth and the only way to switch the network now is through wallet settings.
*
* The component is using the useNetworkType hook to fetch the network type.
*/
declare const NetworkType: () => react_jsx_runtime.JSX.Element;
export { NetworkType as default };