mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
Moved the fetcher to its own file
This commit is contained in:
17
framework/bigcommerce/provider.ts
Normal file
17
framework/bigcommerce/provider.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { handler as useCart } from './cart/use-cart'
|
||||
import { handler as useWishlist } from './wishlist/use-wishlist'
|
||||
import { handler as useCustomer } from './customer/use-customer'
|
||||
import { handler as useSearch } from './product/use-search'
|
||||
import fetcher from './fetcher'
|
||||
|
||||
export const bigcommerceProvider = {
|
||||
locale: 'en-us',
|
||||
cartCookie: 'bc_cartId',
|
||||
fetcher,
|
||||
cart: { useCart },
|
||||
wishlist: { useWishlist },
|
||||
customer: { useCustomer },
|
||||
products: { useSearch },
|
||||
}
|
||||
|
||||
export type BigcommerceProvider = typeof bigcommerceProvider
|
Reference in New Issue
Block a user