добавил ветку main-page

This commit is contained in:
Joe_Peach committed 2025-11-20 15:42:09 +03:00
1 parent 1fe3ba2ba5
commit 8dc704c466
41 files changed
+1988

No files matched your search

@@ -0,0 +1,20 @@
import React from "react";
import type { Product } from "../../types/product";
import ProductCard from "./ProductCard";
import styles from "./Catalog.module.css";
interface Props {
products: Product[];
}
const ProductGrid: React.FC<Props> = ({ products }) => {
return (
<div className={styles.grid}>
{products.map((p) => (
<ProductCard key={p.id} product={p} />
))}
</div>
);
};
export default ProductGrid;