1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-23 09:11:23 +00:00
Files
.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
commerce/framework/swell/checkout/use-checkout.tsx
Gonzalo Pozzo 1720bd698c Implement custom checkout ()
* Implement custom checkout core

* Fix elements on core

* Add files to providers

* Adapt providers

* Update types

* Update shopify file

* Format files
2021-09-22 19:20:58 -05:00

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) => ({}),
}