diff --git a/app/page.tsx b/app/page.tsx index 448ff1b..448720a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,8 +2,12 @@ import Image from "next/image"; import SearchBar from "@/components/SearchBar"; import HeroCarousel from "@/components/HeroCarousel"; +import { getAllProducts } from "@/lib/actions"; +import ProductCard from "@/components/ProductCard"; + +const Home = async () => { + const allProducts = await getAllProducts(); -const Home = () => { return ( <>
@@ -36,7 +40,11 @@ const Home = () => {

Trending

-
{/* Products */}
+
+ {allProducts?.map((product) => ( + + ))} +
);