UNPKG

@funkit/connect

Version:

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

44 lines (43 loc) 2.18 kB
import React, { type ReactNode } from 'react'; import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods'; export declare const getDynamicValueIconComponent: () => React.JSX.Element; export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: { paymentIcon: ReactNode; keyIconSize: number; }): React.JSX.Element; interface ConnectedMeshPaymentMethodItemProps extends ConnectedPaymentMethodItemProps { paymentMethodInfo: PaymentMethodBrokerageInfo; onBrokerageError?: () => void; } /** it is different from BrokeragePaymentMethodItem * this component is for connected mesh brokerage like robinhood * the other one is for connecting new brokerage button * */ export declare const ConnectedMeshPaymentMethodItem: ({ paymentMethodInfo, isSelected, onSelect, onBrokerageError, showSelectedCheckmark, }: ConnectedMeshPaymentMethodItemProps) => React.JSX.Element; interface ConnectedPaymentMethodItemProps { isSelected: boolean; showSelectedCheckmark?: boolean; onSelect: () => void; targetChainId: string; testId?: string; } export declare const AccountBalancePaymentMethodItem: ({ isSelected, showSelectedCheckmark, onSelect, targetChainId, testId, }: ConnectedPaymentMethodItemProps) => React.JSX.Element; export declare const ActiveFiatAccountPaymentMethodItem: ({ isActive, onClick, paymentMethodInfo, customValueIcon, testId, }: BasePaymentMethodItemProps & { paymentMethodInfo: PaymentMethodVirtualBankInfo; testId?: string; }) => React.JSX.Element; type BasePaymentMethodItemProps = { isActive: boolean; onClick: () => void; isClickable?: boolean; customValueIcon?: ReactNode; testId?: string; }; export declare function AddPaymentMethodItem({ paymentMethod, isClickable, isActive, onClick, customValueIcon, testId, }: BasePaymentMethodItemProps & { paymentMethod: PaymentMethod; dynamicLimit?: string; }): React.JSX.Element | undefined; export declare function PayPalPaymentMethodItem({ isActive, isClickable, onClick, isLoading, }: BasePaymentMethodItemProps & { isLoading: boolean; }): React.JSX.Element; export {};