import type { TestimonialsSection } from '../types'; import { Container, SectionHeading } from '../ui'; export function Testimonials({ section }: { section: TestimonialsSection }) { const { heading, items } = section.content; if (section.variant === 'single') { const first = items[0]; return ( {heading} “{first.quote}” {first.name} {first.role ? ` · ${first.role}` : ''} ); } return ( {items.map((item) => ( “{item.quote}” {item.name} {item.role && ( {' '} · {item.role} )} ))} ); }
{heading}
“{first.quote}”
{first.name} {first.role ? ` · ${first.role}` : ''}
“{item.quote}”
{item.name} {item.role && ( {' '} · {item.role} )}