mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
18 lines
405 B
TypeScript
18 lines
405 B
TypeScript
import { SWRHook } from '@vercel/commerce/utils/types'
|
|
import useSearch, { UseSearch } from '@vercel/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: [],
|
|
},
|
|
}
|
|
},
|
|
}
|