@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
26 lines (25 loc) • 1.3 kB
TypeScript
import type { FunAddress } from '@funkit/api-base';
import React from 'react';
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext/types';
import { type HealthFactorInfo } from './DestinationHealthFactorRow';
interface PaymentMethodSummaryProps {
paymentMethodInfo: PaymentMethodInfo;
customRecipient: FunAddress | undefined;
isLoading: boolean;
estimatedTimeText: string;
isWithdrawal?: boolean;
/**
* Integrator-provided yield metadata for the destination. When present, it's
* rendered as Supply APY / Collateralization rows after the Estimated Time row.
*/
destinationYieldInfo?: FunkitCheckoutConfig['destinationYieldInfo'];
/**
* Projected health factor for an Aave supply. When present, rendered as a
* Health factor (before → after) row after the yield rows. The SDK computes
* this from the live confirmation amount (Aave supply checkouts only).
*/
healthFactorInfo?: HealthFactorInfo;
}
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTimeText, isLoading, isWithdrawal, destinationYieldInfo, healthFactorInfo, }: PaymentMethodSummaryProps): React.JSX.Element;
export {};