UNPKG

@funkit/connect

Version:

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

18 lines (17 loc) 1.05 kB
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 * 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 | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined; interface PaymentMethodInfoLabel { text: string; icon: ReactNode; } export declare const usePaymentMethodInfoLabel: (methodInfo: PaymentMethodInfo, iconSize?: number) => PaymentMethodInfoLabel; export {};