mirror of
https://github.com/vercel/commerce.git
synced 2025-04-25 12:27:50 +00:00
10 lines
266 B
TypeScript
10 lines
266 B
TypeScript
import useAction from '../utils/use-action'
|
|
import type { CartItemBody } from '../types'
|
|
|
|
// Input expected by the action returned by the `useAddItem` hook
|
|
export type AddItemInput<T extends CartItemBody> = T
|
|
|
|
const useAddItem = useAction
|
|
|
|
export default useAddItem
|