forked from crowetic/commerce
* Implement custom checkout core * Fix elements on core * Add files to providers * Adapt providers * Update types * Update shopify file * Format files
15 lines
368 B
TypeScript
15 lines
368 B
TypeScript
import { SWRHook } from '@commerce/utils/types'
|
|
import useCheckout, { UseCheckout } from '@commerce/checkout/use-checkout'
|
|
|
|
export default useCheckout as UseCheckout<typeof handler>
|
|
|
|
export const handler: SWRHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook:
|
|
({ useData }) =>
|
|
async (input) => ({}),
|
|
}
|