@sky-mavis/tanto-widget
Version:
Tanto Widget
17 lines (16 loc) • 658 B
TypeScript
import { CSSProperties, ReactNode } from 'react';
import { AccountConnectionCallback } from './types/connect';
export type TantoConnectButtonProps = AccountConnectionCallback & {
className?: string;
style?: CSSProperties;
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, ...rest }: TantoConnectButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;