diff --git a/components/product-card.tsx b/components/product-card.tsx new file mode 100644 index 0000000..7e8bc2f --- /dev/null +++ b/components/product-card.tsx @@ -0,0 +1,49 @@ +"use client"; +import { Card, CardContent, CardFooter } from "@/components/ui/card"; +import { Badge } from "@/components/badge"; +import { Button } from "@/components/ui/button"; +import Image from "next/image"; +import Link from "next/link"; + +export interface Product { + id: string; + name: string; + price: number; + category: string; + image: string; + isNew?: boolean; + isSale?: boolean; +} + +export function ProductCard({ product }: { product: Product }) { + return ( + + +
+ {product.name} +
+ {product.isNew && New Arrival} + {product.isSale && Sale} +
+
+ + +

{product.category}

+

+ {product.name} +

+

${product.price}

+
+ + + +
+ ); +}