UNPKG

@broxus/tvm-connect

Version:

Nekoton-compatible wallets connector.

26 lines (25 loc) 1.07 kB
import { type TvmNetworkConfig } from '@broxus/js-core'; import { type ButtonProps } from '@broxus/react-uikit'; import * as React from 'react'; import { type TvmConnectDialogProps } from '../../components/TvmConnectDialog'; import { type TvmWalletService } from '../../services'; interface TriggerProps { disabled?: boolean; connect: VoidFunction; } export interface TvmConnectButtonProps extends ButtonProps { className?: string; disabled?: boolean; network?: TvmNetworkConfig; popupClassName?: TvmConnectDialogProps['className']; popupType?: TvmConnectDialogProps['type']; standalone?: boolean; trigger?: (props: TriggerProps) => React.ReactNode; onClose?: VoidFunction; onConnect?: (walletService?: TvmWalletService) => Promise<void> | void; onOpen?: VoidFunction; } export declare const TvmConnectButton: (({ disabled, network, popupClassName, popupType, trigger, onClose, onConnect, onOpen, ...props }: React.PropsWithChildren<TvmConnectButtonProps>) => React.JSX.Element) & { displayName: string; }; export {};