--- /** * Shared FAQ Section component * Expandable FAQ items with accordion behavior */ import Container from '../atoms/Container.astro'; import SectionHeader from '../atoms/SectionHeader.astro'; interface FAQItem { question: string; answer: string; } interface Props { title?: string; subtitle?: string; faqs: FAQItem[]; class?: string; id?: string; singleExpand?: boolean; } const { title = 'Frequently Asked Questions', subtitle, faqs, class: className = '', id = 'faq', singleExpand = true, } = Astro.props; const sectionId = `faq-section-${Math.random().toString(36).substring(7)}`; ---
{ faqs.map((faq, index) => (

{faq.question}

)) }