import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Card, CardContent } from "@/components/ui/card" interface Testimonial { content: string author: { name: string title: string avatar?: string } } interface TestimonialSectionProps { title: string description?: string testimonials: Testimonial[] } export function TestimonialSection({ title, description, testimonials }: TestimonialSectionProps) { return (

{title}

{description && (

{description}

)}
{testimonials.map((testimonial, index) => (

"{testimonial.content}"

{testimonial.author.avatar && ( )} {testimonial.author.name.charAt(0)}

{testimonial.author.name}

{testimonial.author.title}

))}
) }