commerce/framework/elasticpath/utils/all-products-context.ts
GunaTrika e5a36389f9 Get products formating
- Checking related products with param
 - Changing the normalizer
 - Separate calls for product & products in normalizer
2021-09-28 10:30:55 +05:30

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;