commerce/framework/vendure/wishlist/use-wishlist-actions.tsx
2021-05-27 12:27:20 +02:00

12 lines
350 B
TypeScript

import useAddItem from './use-add-item'
import useRemoveItem from './use-remove-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 useWishlistActions() {
const addItem = useAddItem()
const removeItem = useRemoveItem()
return { addItem, removeItem }
}