@habit.analytics/habit-smartlink-reactcomponent
Version:
A React component for Habit SmartLink integration.
10 lines • 562 B
TypeScript
/// <reference types="react" />
import { PrePaymentMethod, Environment } from "./helpers";
declare const useSmartlinkComponent: (prePaymentMethod: PrePaymentMethod, onPaymentSuccess: (successPaymentData: string) => void, env: Environment | undefined) => {
iframeRef: import("react").MutableRefObject<HTMLIFrameElement | null>;
sendMessageToIframe: (message: string) => void;
enviroment: "localhost" | "int" | "qa" | "default";
rectangle: DOMRect | null;
};
export default useSmartlinkComponent;
//# sourceMappingURL=useSmartlinkComponent.d.ts.map