--- import Headline from 'components/ui/Headline.astro'; import WidgetWrapper from 'components/ui/WidgetWrapper.astro'; import Button from 'components/ui/Button.astro'; import Image from 'components/common/Image.astro'; import type { Testimonials as Props } from 'types'; const { title = '', subtitle = '', tagline = '', testimonials = [], callToAction, id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props; ---
{ testimonials && testimonials.map(({ title, testimonial, name, job, image }) => (
{title &&

{title}

} {testimonial && (

" {testimonial} "

)}
{image && (
{typeof image === 'string' ? ( ) : ( )}
)}
{name &&

{name}

} {job &&

{job}

}
)) }
{ callToAction && (
) }