UNPKG

@funkit/connect

Version:

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

19 lines (18 loc) 889 B
import React, { type ReactNode } from 'react'; import { PaymentMethod, type PaymentMethodInfo } from '../domains/paymentMethods'; export declare const PAYMENT_METHOD_ICONS: Record<Exclude<PaymentMethod, PaymentMethod.ACCOUNT_BALANCE>, (size: number) => ReactNode>; /** Reference ENG-716 * web2 users -> social icon * EOA wallet users * detect connectors and show builtin icon in SDK * if no SDK icons available, show icon from wagmi * otherwise show fallback icon EVM */ export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, iconSize?: number): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; interface PaymentMethodInfoLabel { text: string; icon: ReactNode; } export declare const usePaymentMethodInfoLabel: (methodInfo: PaymentMethodInfo, iconSize?: number) => PaymentMethodInfoLabel; export {};