{title}
{items.map((item) => (
))}
);
}
interface CartRecommendationSectionProps {
title: string;
items: ProductRecommendation[];
className?: string;
}
/**
* DESIGN ME — cross-sell strip on the cart page ("you might also need");
* items come from useCartPage().cartRecs.
*
* Building blocks: shadcn/ui primitives in src/components/ui (Button, Card, Badge, Input, Select, Accordion, Dialog, Skeleton, ...) + lucide-react icons are installed and ready to compose with.
*/
export function CartRecommendationSection({
title,
items,
className,
}: CartRecommendationSectionProps) {
if (items.length === 0) return null;
return (