mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Progress with LocalProvider
This commit is contained in:
2
framework/local/product/index.ts
Normal file
2
framework/local/product/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default as usePrice } from './use-price'
|
||||
export { default as useSearch } from './use-search'
|
13
framework/local/product/use-price.tsx
Normal file
13
framework/local/product/use-price.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useCallback } from 'react'
|
||||
|
||||
export function emptyHook() {
|
||||
const useEmptyHook = async (options = {}) => {
|
||||
return useCallback(async function () {
|
||||
return Promise.resolve()
|
||||
}, [])
|
||||
}
|
||||
|
||||
return useEmptyHook
|
||||
}
|
||||
|
||||
export default emptyHook
|
15
framework/local/product/use-search.tsx
Normal file
15
framework/local/product/use-search.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useCallback } from 'react'
|
||||
|
||||
export function emptyHook() {
|
||||
const useEmptyHook = async (options = {}) => {
|
||||
return useCallback(async function () {
|
||||
return Promise.resolve()
|
||||
}, [])
|
||||
}
|
||||
|
||||
return useEmptyHook
|
||||
}
|
||||
|
||||
export const handler = {}
|
||||
|
||||
export default emptyHook
|
Reference in New Issue
Block a user