import { Carousel } from "@/components/ui/Carousel"; import { ProductCard } from "@/components/ui/ProductCard"; import { getProducts, productHref, type Product } from "@/lib/meshkee"; export async function SimilarProducts({ categoryId, excludeProductId, contactPhone, }: { categoryId?: string; excludeProductId: string; contactPhone?: string; }) { if (!categoryId) return null; const { items } = await getProducts({ categoryId, pageSize: 9 }); const products: Product[] = items.filter((p) => p.id !== excludeProductId).slice(0, 8); if (products.length === 0) return null; return (