added cart and store components

This commit is contained in:
Smigz 2024-10-13 11:41:36 -04:00
parent 556a7f8fe2
commit 81d70ec032
13 changed files with 254 additions and 54 deletions

View file

@ -0,0 +1,19 @@
import Product from "./products";
import PropTypes from "prop-types";
export default function ProductCollection({ loading, items }) {
return (
<div>
{!loading
? items.map((item, index) => {
return <Product item={item} key={index} />;
})
: null}
</div>
);
}
ProductCollection.propTypes = {
loading: PropTypes.bool,
items: PropTypes.array,
};