UNPKG

@wallet-ui/react

Version:

React components for Wallet UI

22 lines 729 B
import { UiWallet, UiWalletAccount } from '@wallet-standard/react'; import { SolanaCluster } from '@wallet-ui/core'; import React, { ReactNode } from 'react'; export interface WalletUiContextProviderProps { children: ReactNode; } export interface WalletUiContextValue { account?: UiWalletAccount; accountKeys: string[]; cluster: SolanaCluster; connect: (wallet: UiWalletAccount) => void; connected: boolean; copy: () => void; disconnect: () => void; wallet?: UiWallet; wallets: UiWallet[]; } export interface WalletUiContextProviderProps { children: ReactNode; } export declare const WalletUiContext: React.Context<WalletUiContextValue>; //# sourceMappingURL=wallet-ui-context.d.ts.map