import { cn } from '@/lib/utils'; 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}` : ''}

); } // wall: cards of different heights packed in columns, like notes on a board. const wall = section.variant === 'wall'; return (
    {items.map((item, index) => (
  • “{item.quote}”

    {item.name} {item.role && ( {' '} · {item.role} )}

  • ))}
); }