UNPKG

@whop/react

Version:

React SDK for building embedded apps on Whop

11 lines (10 loc) 603 B
import { type WhopCheckoutSubmitDetails, getEmbeddedCheckoutIframeUrl } from "@whop/checkout/util"; type GetEmbeddedCheckoutIframeUrlParams = Parameters<typeof getEmbeddedCheckoutIframeUrl>; export interface WhopCheckoutEmbedControls { submit: (opts?: WhopCheckoutSubmitDetails) => void; getEmail: (timeout?: number) => Promise<string>; setEmail: (email: string, timeout?: number) => Promise<void>; } export declare function useEmbeddedCheckoutIframeUrl(...params: GetEmbeddedCheckoutIframeUrlParams): string; export declare const EMBEDDED_CHECKOUT_IFRAME_SANDBOX_STRING: string; export {};