mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Icky 161 folder and env setup (#1)
* folder and env setup * codegen.json headers removed Co-authored-by: Chandradeepta <43542673+Chandradeepta@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0e7e7b7d5f
commit
9e92abdda0
17
framework/kibocommerce/product/use-search.tsx
Normal file
17
framework/kibocommerce/product/use-search.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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: [],
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user