@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
24 lines (23 loc) • 1.18 kB
TypeScript
import React from 'react';
import type { FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
/**
* Whether to offer the "Use connected wallet" recipient shortcut: shown when a
* wallet is connected and the integrator hasn't set `disableConnectedWallet`.
* Independent of the withdrawal source address — for connected-wallet
* withdrawals (e.g. Mallard) the source IS the connected wallet, and
* withdrawing to it on the destination chain is valid.
*/
export declare function shouldShowUseConnectedWallet({ disableConnectedWallet, isConnected, connectedWalletAddress, }: {
disableConnectedWallet: boolean | undefined;
isConnected: boolean;
connectedWalletAddress: string | undefined;
}): boolean;
export declare function WithdrawRecipientAddress({ config, recipientAddress, setRecipientAddress, selectedChainId, selectedToken, isValidAddress, isRiskyAddress, }: {
config: FunkitWithdrawalConfig;
recipientAddress: string;
setRecipientAddress: (s: string) => void;
selectedChainId: number | undefined;
selectedToken: string | undefined;
isValidAddress: boolean;
isRiskyAddress: boolean;
}): React.JSX.Element;