import React from 'react'; import { Section } from '@/ui/Section'; import { Container } from '@/ui/Container'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { Accordion } from '@/components/shared/Accordion'; import { CardStack } from '@/ui/CardStack'; import { Center } from '@/ui/Center'; interface FAQItem { question: string; answer: string; } interface FAQSectionProps { title: string; subtitle: string; faqs: FAQItem[]; } /** * FAQSection - A semantic component for the FAQ section. */ export function FAQSection({ title, subtitle, faqs, }: FAQSectionProps) { return (
{subtitle}
{title}
{faqs.map((faq, index) => ( {faq.answer} ))}
); }