@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
17 lines (16 loc) • 852 B
TypeScript
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
import React from 'react';
import type { PaymentMethodCardInfo } from '~/domains/paymentMethods';
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
export type MeldQuotesState = CheckoutModalCommonState & {
paymentMethodInfo: PaymentMethodCardInfo;
/** Checkout amount in fiat */
fiatAmount: number | undefined;
fiatCurrency: string | undefined;
provider?: MeldServiceProvider;
};
export type MeldQuotesNext = Record<string, never> | {
quote: MeldQuote;
};
export declare const MeldQuotesInfo: ModalStepInfo<FunCheckoutStep.MELD_QUOTES>;
export declare function MeldQuotes({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MELD_QUOTES>): React.JSX.Element;