mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
import { MutationHook } from '@vercel/commerce/utils/types'
|
|
import useSubmitCheckout, {
|
|
UseSubmitCheckout,
|
|
} from '@vercel/commerce/checkout/use-submit-checkout'
|
|
|
|
export default useSubmitCheckout as UseSubmitCheckout<typeof handler>
|
|
|
|
export const handler: MutationHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook:
|
|
({ fetch }) =>
|
|
() =>
|
|
async () => ({}),
|
|
}
|