// ProductCard.tsx import Link from "next/link" import { cn } from "@/cosmic/utils" export type ProductType = { id: string title: string slug: string metadata: { image: { imgix_url: string } description: string price: number } } export function ProductCard({ product, className, }: { product: ProductType className?: string }) { return (
{product.title}

{product.title}

${product.metadata.price.toLocaleString("en-US")}

) }