"use client"; import Image from "next/image"; import Link from "next/link"; import type { Product } from "@/data/home"; import { productPath } from "@/lib/product-path"; type ProductCardProps = { product: Product; className?: string; }; export default function ProductCard({ product, className = "" }: ProductCardProps) { const href = product.href ?? productPath(product); const hoverSrc = product.imageHover; return (
{/* Clip media only — keep border on the outer box so it never gets cut off */} {product.nameFa} {hoverSrc ? ( ) : null} {product.nameFa} {product.nameEn} {product.price} IRT
); }