UNPKG

@gear-js/wallet-connect

Version:

React library to connect Substrate based wallets to Gear dApps

21 lines (20 loc) 1.12 kB
import * as Gear from '@gear-js/ui'; import * as Vara from '@gear-js/vara-ui'; type Props<T extends Vara.ButtonProps | Gear.ButtonProps> = { name: string | undefined; address: string; } & Pick<T, 'block' | 'color' | 'size' | 'onClick'>; declare function VaraAccountButton({ address, name, color, size, block, onClick }: Props<Vara.ButtonProps>): import("react/jsx-runtime").JSX.Element; declare namespace VaraAccountButton { var Modal: typeof VaraAccountButtonModal; } declare function GearAccountButton(props: Props<Gear.ButtonProps>): import("react/jsx-runtime").JSX.Element; declare namespace GearAccountButton { var Modal: typeof GearAccountButtonModal; } type ModalProps<T extends Gear.ButtonProps | Vara.ButtonProps> = Omit<Props<T>, 'size' | 'block' | 'color'> & { color: 'primary' | 'plain'; }; declare function VaraAccountButtonModal(props: ModalProps<Vara.ButtonProps>): import("react/jsx-runtime").JSX.Element; declare function GearAccountButtonModal({ color, ...props }: ModalProps<Gear.ButtonProps>): import("react/jsx-runtime").JSX.Element; export { VaraAccountButton, GearAccountButton };