forked from crowetic/commerce
add in initial wishlist api functions and hooks
This commit is contained in:
11
lib/bigcommerce/wishlist/use-wishlist-actions.tsx
Normal file
11
lib/bigcommerce/wishlist/use-wishlist-actions.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
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(wishlistId: string) {
|
||||
const addItem = useAddItem(wishlistId)
|
||||
const removeItem = useRemoveItem(wishlistId)
|
||||
|
||||
return { addItem, removeItem }
|
||||
}
|
Reference in New Issue
Block a user