--- // Import AvatarTestimonialSection component for use in this module import AvatarTestimonialSection from '../../ui/avatars/AvatarTestimonialSection.astro'; // Define props from Astro const { title, testimonials } = Astro.props; // Define TypeScript interface for Testimonial interface Testimonial { content: string; author: string; role: string; avatarSrc: string; avatarAlt: string; } // Define TypeScript interface for props interface Props { title: string; testimonials: Testimonial[]; } --- {/* Main div that wraps the testimonials section */}
{/* Title of the testimonials section */}

{title}

{/* Looping through each testimonial data and rendering it */} { testimonials.map(testimonial => (
{/* Testimonial content */}

{testimonial.content}

{testimonial.author}

{testimonial.role}

)) }