Adding initial files for elastipath - not working

This commit is contained in:
GunaTrika
2021-07-19 17:29:19 +05:30
parent 559451f958
commit f98cea2c1d
36 changed files with 930 additions and 3 deletions

View 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: [],
},
}
},
}