import { Link } from "react-router-dom"; import Products from "./products"; import PropTypes from "prop-types"; import styles from "./productCollection.module.css"; export default function ProductCollection({ loading, items, cart, setCart }) { return (
{!loading ? items.map((item, index) => { return (
More Info
); }) : null}
); } ProductCollection.propTypes = { loading: PropTypes.bool, items: PropTypes.array, cart: PropTypes.object, setCart: PropTypes.func, };