1
0
mirror of https://github.com/vercel/commerce.git synced 2025-07-15 00:41:21 +00:00
2021-04-18 11:52:51 -03: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