4
0
forked from crowetic/commerce
commerce/lib/bigcommerce/cart/use-cart-actions.tsx
2020-10-05 21:57:38 -05:00

14 lines
441 B
TypeScript

import useAddItem from './use-add-item'
import useRemoveItem from './use-remove-item'
import useUpdateItem from './use-update-item'
// This hook is probably not going to be used, but it's here
// to show how a commerce should be structuring it
export default function useCartActions() {
const addItem = useAddItem()
const updateItem = useUpdateItem()
const removeItem = useRemoveItem()
return { addItem, updateItem, removeItem }
}