@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
22 lines (21 loc) • 1.28 kB
TypeScript
import React from 'react';
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
export type LoadingAccountState = CheckoutModalCommonState;
export type LoadingAccountNext = {
chosenPaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
paymentMethodInfo: PaymentMethodAccountInfo;
} | {
chosenPaymentMethod: PaymentMethod.BROKERAGE;
paymentMethodInfo: PaymentMethodBrokerageInfo;
} | {
chosenPaymentMethod: PaymentMethod.VIRTUAL_BANK;
paymentMethodInfo: PaymentMethodVirtualBankInfo;
} | {
/** Can be set to null to skip auto payment method selection */
chosenPaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
paymentMethodInfo?: ConnectablePaymentMethodInfo;
};
export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
/** A placeholder component to handle redirecting to the checkout history page */
export declare function LoadingAccount({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.LOADING_ACCOUNT>): React.JSX.Element;