interface SellerChipProps { name?: string; logo?: string | null; } /** * Small brand chip (logo + name) shown over a product card's image overlay. * Renders nothing when there's no seller name. Falls back to the seller's * initial when no logo is available (e.g. before the backend exposes it). */ export default function SellerChip({ name, logo }: SellerChipProps) { if (!name) return null; return (
{logo ? ( { e.currentTarget.style.display = "none"; }} /> ) : ( name.trim().charAt(0) )} {name}
); }