@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
13 lines (12 loc) • 473 B
TypeScript
import type { FormOfPaymentType } from '@funkit/api-base';
/**
* Shared lifecycle hook for Swapped iframe containers (deposit + withdrawal).
* Handles activate/deactivate on mount/unmount and timeout error detection.
*
* `onTimeout` is stabilized internally via useEffectEvent — callers do not
* need to memoize it.
*/
export declare function useSwappedIframeLifecycle({ fopType, onTimeout, }: {
fopType: FormOfPaymentType;
onTimeout: () => void;
}): void;