UNPKG

@nacelle/react-hooks

Version:

Custom convenience hooks for use when building apps with Nacelle

13 lines (12 loc) 504 B
import { CheckoutProvider } from './use-checkout.provider'; import { CheckoutState, CheckoutActions } from './use-checkout.types'; /** * Create and manage checkouts. * * @returns an array with: * - [0]: checkout data object * - [1]: object containing `processCheckout`, `getCheckout`, and `clearCheckoutData` checkout functions * - [2]: an `isCheckingOut` boolean */ declare const useCheckout: () => [CheckoutState, CheckoutActions, boolean]; export { useCheckout, CheckoutProvider };