import React from "react"; import Image from "next/image"; import type { Product } from "../types"; export function ProductCard({ item, basePath = "" }: { item: Product; basePath?: string }) { const hasLink = Boolean(item.href); const summary = item.summary ?? item.description; const Wrapper = hasLink ? "a" : "div"; const wrapperProps = hasLink ? { href: `${basePath}${item.href}` } : {}; const content = (
{summary}
)} {item.bullets && item.bullets.length > 0 && (