UNPKG

@funkit/connect

Version:

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

18 lines (17 loc) 1.04 kB
import type { SwappedFormOfPayment } from '@funkit/api-base'; import React from 'react'; import type { PaymentMethodType } from '../../../hooks/usePaymentSources'; import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition'; export type SwappedIframeState = CheckoutModalCommonState & { /** The selected payment option from the fops API */ selectedPaymentOption: SwappedFormOfPayment; /** Payment method type filter to restore when returning to SOURCE_CHANGE */ paymentMethodTypeFilter?: PaymentMethodType; /** Set to true when an error occurs (iframe error or load timeout) */ error?: boolean; }; export type SwappedIframeNext = { success?: boolean; }; export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>; export declare function SwappedIframeController({ modalState, onBack, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;