@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
18 lines (17 loc) • 859 B
TypeScript
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 | 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 {};