4
0
forked from crowetic/commerce
commerce/framework/commerce/wishlist/use-add-item.tsx
2021-02-15 12:02:24 -05:00

13 lines
337 B
TypeScript

import useAction from '../utils/use-action'
import type { CartItemBody } from '../types'
// Input expected by the action returned by the `useAddItem` hook
// export interface AddItemInput {
// includeProducts?: boolean
// }
export type AddItemInput<T extends CartItemBody> = T
const useAddItem = useAction
export default useAddItem