mirror of
https://github.com/vercel/commerce.git
synced 2025-08-16 05:41:24 +00:00
.vscode
assets
components
config
framework
bigcommerce
commerce
commercejs
kibocommerce
local
ordercloud
saleor
shopify
api
auth
cart
checkout
use-checkout.tsx
customer
product
types
utils
wishlist
.env.template
README.md
codegen.json
commerce.config.json
const.ts
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
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) => ({}),
|
|
}
|