--- import { Picture } from 'astro:assets'; import felix from '../../assets/images/people/felix.png'; import florian from '../../assets/images/people/florian.png'; import { localePath, t, type Lang } from '../../i18n/ui'; interface Props { lang: Lang } const { lang } = Astro.props; const ui = t(lang); // Where each statement's eyebrow leads, and whose portrait sits beside it. Same order as ui.quote.items. const sources = [ { href: localePath(lang, '/insights/xg-aloe-user-forum'), portrait: felix }, { href: `${localePath(lang, '/team')}#research-title`, portrait: florian }, ]; const items = ui.quote.items.map((item, i) => ({ ...item, ...sources[i] })); const quoted = (text: string) => (lang === 'de' ? `„${text}“` : `“${text}”`); --- {items.map((item, i) => ( {item.eyebrow} {quoted(item.text)} {item.name}{item.role} ))} {items.map((item, i) => ( ))} {items.map((item, i) => ( ))}
{item.eyebrow}
{quoted(item.text)}