UNPKG

@gear-js/react-hooks

Version:
17 lines (16 loc) 532 B
import { ProviderProps } from '../../types'; import { Account, Wallets } from './types'; type Value = { wallets: Wallets | undefined; account: Account | undefined; isAnyWallet: boolean; isAccountReady: boolean; login: (account: Account) => void; logout: () => void; }; declare const useAccount: () => Value; type Props = ProviderProps & { appName: string; }; declare function AccountProvider({ appName, children }: Props): import("react/jsx-runtime").JSX.Element; export { AccountProvider, useAccount };