initial provider (#2)

This commit is contained in:
Kasper Fabricius Kristensen
2021-09-14 17:29:38 +02:00
committed by GitHub
parent 5b4d1b57d4
commit 3342d9d1bb
66 changed files with 1665 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
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