mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
- Checking related products with param - Changing the normalizer - Separate calls for product & products in normalizer
16 lines
309 B
TypeScript
16 lines
309 B
TypeScript
import React from "react";
|
|
import { Product } from '@commerce/types/product';
|
|
|
|
const AllProductContext = React.createContext<Product>({
|
|
id: '',
|
|
name: '',
|
|
description: '',
|
|
images: [],
|
|
variants: [],
|
|
price: {
|
|
value: 0
|
|
},
|
|
options: [],
|
|
});
|
|
|
|
export default AllProductContext; |