@paypal/react-paypal-js
Version:
React components for the PayPal JS SDK
15 lines (14 loc) • 495 B
TypeScript
import { Dispatch } from "react";
import type { InstanceAction } from "../context/PayPalProviderContext";
/**
* Internal hook for dispatching PayPal state updates.
*
* @remarks
* This is an INTERNAL API and should not be used directly by external consumers.
* Only use this in internal hooks that need to update the PayPal context state.
*
* @internal
*
* @returns Dispatch function for PayPal instance actions
*/
export declare function usePayPalDispatch(): Dispatch<InstanceAction>;