UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

17 lines (16 loc) 756 B
import type { SwappedFormOfPayment } from '@funkit/api-base'; import React from 'react'; interface WithdrawalMethodSelectProps { onCryptoSelect: () => void; onCashFopSelect: (fop: SwappedFormOfPayment) => void; sourceChainId: string; sourceTokenAddress: string; /** * Source-token balance in USD. MVP source is USDG (≈ $1) so the token balance * ≈ USD; non-stable sources (e.g. ETH) would need `balance × USD price`. * Omit/0 when unknown — no cap is sent and the iframe stays uncapped. */ usdBalance?: number; } export declare function WithdrawalMethodSelect({ onCryptoSelect, onCashFopSelect, sourceChainId, sourceTokenAddress, usdBalance, }: WithdrawalMethodSelectProps): React.JSX.Element; export {};