mirror of
https://github.com/vercel/commerce.git
synced 2025-07-07 05:11:22 +00:00
* folder and env setup * codegen.json headers removed Co-authored-by: Chandradeepta <43542673+Chandradeepta@users.noreply.github.com>
18 lines
391 B
TypeScript
18 lines
391 B
TypeScript
import { SWRHook } from '@commerce/utils/types'
|
|
import useSearch, { UseSearch } from '@commerce/product/use-search'
|
|
export default useSearch as UseSearch<typeof handler>
|
|
|
|
export const handler: SWRHook<any> = {
|
|
fetchOptions: {
|
|
query: '',
|
|
},
|
|
async fetcher({ input, options, fetch }) {},
|
|
useHook: () => () => {
|
|
return {
|
|
data: {
|
|
products: [],
|
|
},
|
|
}
|
|
},
|
|
}
|