mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
import { MutationHook } from '@commerce/utils/types'
|
|
import useRemoveItem, { UseRemoveItem } from '@commerce/cart/use-remove-item'
|
|
|
|
export default useRemoveItem as UseRemoveItem<typeof handler>
|
|
|
|
export const handler: MutationHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook:
|
|
({ fetch }) =>
|
|
() => {
|
|
return async function removeItem(input) {
|
|
return {}
|
|
}
|
|
},
|
|
}
|