import { Quote, Star } from "lucide-react"; import Image from "next/image"; import type { TestimonialRow } from "@/lib/types"; export function TestimonialsCarousel({ items }: { items: TestimonialRow[] }) { return (
{items.map((t) => (
{Array.from({ length: t.rating ?? 5 }).map((_, i) => ( ))}
“{t.message}”
{t.image_url ? ( {t.name} ) : (
{t.name.charAt(0)}
)}

{t.name}

{[t.role, t.company].filter(Boolean).join(" — ")}

))}
); }