WIP OrderCloud provider

This commit is contained in:
goncy
2021-08-06 16:23:33 -03:00
parent 0e7e7b7d5f
commit f765590484
50 changed files with 691 additions and 4 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: [],
},
}
},
}