Loan Laux 5f1c341612
Add missing empty wishlist hooks
Signed-off-by: Loan Laux <loan@outgrow.io>
2021-03-30 20:09:18 +04: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