mirror of
https://github.com/vercel/commerce.git
synced 2025-08-16 13:51:24 +00:00
.vscode
assets
components
config
framework
bigcommerce
api
auth
cart
checkout
use-checkout.tsx
customer
lib
product
scripts
types
wishlist
.env.template
README.md
commerce.config.json
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
commerce
commercejs
commercelayer
kibocommerce
local
ordercloud
saleor
shopify
spree
swell
vendure
lib
pages
public
.editorconfig
.env.template
.eslintrc
.gitignore
.prettierignore
.prettierrc
README.md
codegen.bigcommerce.json
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package-lock.json
package.json
postcss.config.js
swell-js.d.ts
tailwind.config.js
tsconfig.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) => ({}),
|
|
}
|