mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Initial work, copied from the Shopify provider
This commit is contained in:
13
framework/saleor/wishlist/use-add-item.tsx
Normal file
13
framework/saleor/wishlist/use-add-item.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useCallback } from 'react'
|
||||
|
||||
export function emptyHook() {
|
||||
const useEmptyHook = async (options = {}) => {
|
||||
return useCallback(async function () {
|
||||
return Promise.resolve()
|
||||
}, [])
|
||||
}
|
||||
|
||||
return useEmptyHook
|
||||
}
|
||||
|
||||
export default emptyHook
|
Reference in New Issue
Block a user