mirror of
https://github.com/vercel/commerce.git
synced 2025-08-23 09:11:23 +00:00
.vscode
framework
kibocommerce
ordercloud
saleor
shopify
spree
swell
api
auth
cart
checkout
use-checkout.tsx
customer
product
types
utils
wishlist
.env.template
commerce.config.json
const.ts
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
swell.ts
types.ts
vendure
packages
site
.editorconfig
.gitignore
.prettierignore
.prettierrc
README.md
license.md
package-copy.json
package-lock.json
package.json
* 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) => ({}),
|
|
}
|