@broxus/tvm-connect
Version:
TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.
22 lines (21 loc) • 790 B
TypeScript
import { type TvmNetworkConfig } from '@broxus/js-core';
import { type ButtonProps } from '@broxus/react-uikit';
import * as React from 'react';
import { type NekotonConnector } from '../core';
import { type PopupType } from '../types';
interface TriggerProps {
connect: VoidFunction;
disabled?: boolean;
}
export interface TvmConnectButtonProps extends ButtonProps {
className?: string;
disabled?: boolean;
network?: TvmNetworkConfig;
popupType?: PopupType;
standalone?: boolean;
trigger?: (props: TriggerProps) => React.ReactNode;
onConnect?: (connector: NekotonConnector) => (Promise<void> | void);
onOpen?: VoidFunction;
}
export declare const TvmConnectButton: React.FunctionComponent<React.PropsWithChildren<TvmConnectButtonProps>>;
export {};