@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
23 lines (22 loc) • 838 B
TypeScript
import type { FormOfPaymentType } from '@funkit/api-base';
import { type SwappedTransport } from '@funkit/connect-core';
import React from 'react';
import { type SwappedTheme } from '../utils/swapped';
interface SwappedContextValue {
iframeUrl: string | null;
isSwappedReady: boolean;
isActive: boolean;
setIframeUrl: (url: string | null) => void;
activateIframe: (fopType: FormOfPaymentType) => void;
deactivateIframe: () => void;
resetIframe: () => void;
setIframeRef: (el: HTMLIFrameElement | null) => void;
focusAmountInput: () => void;
swappedTheme: SwappedTheme;
swappedTransport: SwappedTransport;
}
export declare function SwappedProvider({ children }: {
children: React.ReactNode;
}): React.JSX.Element;
export declare function useSwappedContext(): SwappedContextValue;
export {};