forked from crowetic/commerce
13 lines
337 B
TypeScript
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
|