--- import Icon from './Icon.astro'; import { contentFor } from '../data/content'; import { langFromUrl } from '../i18n'; interface Props { limit?: number; openFirst?: boolean } const { limit, openFirst = true } = Astro.props; const { faqs } = contentFor(langFromUrl(Astro.url)); const list = limit ? faqs.slice(0, limit) : faqs; ---
{list.map((f, i) => (
{f.q}
{f.a}
))}