mirror of
https://github.com/vercel/commerce.git
synced 2025-03-27 15:55:54 +00:00
* Implement custom checkout core * Fix elements on core * Add files to providers * Adapt providers * Update types * Update shopify file * Format files
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
import useAddItem, { UseAddItem } from '@commerce/customer/card/use-add-item'
|
|
import { MutationHook } from '@commerce/utils/types'
|
|
|
|
export default useAddItem as UseAddItem<typeof handler>
|
|
|
|
export const handler: MutationHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook:
|
|
({ fetch }) =>
|
|
() =>
|
|
async () => ({}),
|
|
}
|