4
0
forked from crowetic/commerce
commerce/framework/swell/wishlist/use-remove-item.tsx
2021-03-02 21:05:13 -06:00

18 lines
340 B
TypeScript

import { useCallback } from 'react'
type Options = {
includeProducts?: boolean
}
export function emptyHook(options?: Options) {
const useEmptyHook = async ({ id }: { id: string | number }) => {
return useCallback(async function () {
return Promise.resolve()
}, [])
}
return useEmptyHook
}
export default emptyHook