mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 01:05:53 +00:00
* Start of Shopify provider * add missing comment to documentation * add missing env vars to documentation * update reference to types file
18 lines
340 B
TypeScript
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
|