@sky-mavis/tanto-widget
Version:
Tanto Widget
18 lines (17 loc) • 695 B
TypeScript
import type { CSSProperties, ReactNode } from 'react';
import type { AccountConnectionCallback } from './types/connect';
export type TantoConnectButtonProps = AccountConnectionCallback & {
className?: string;
style?: CSSProperties;
label?: string;
children?: (renderProps: {
isConnected: boolean;
rns?: string;
address?: string;
chainId?: number | undefined;
modalOpen: boolean;
showModal: () => void;
hideModal: () => void;
}) => ReactNode;
};
export declare function TantoConnectButton({ onConnect, onDisconnect, children, label, ...rest }: TantoConnectButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;