--- interface FAQItem { question: string; answer: string; answerHtml?: string; } interface Props { label: string; heading: string; items: FAQItem[]; canonical?: string; } const { label, heading, items, canonical } = Astro.props; const schema = { '@context': 'https://schema.org', '@type': 'FAQPage', ...(canonical ? { '@id': `${canonical}#faq` } : {}), mainEntity: items.map((item) => ({ '@type': 'Question', name: item.question, acceptedAnswer: { '@type': 'Answer', text: item.answer } })) }; ---

{label}

{heading}

{items.map((item, index) => (
{item.question}
${item.answer}

`} />
))}