diff --git a/src/app/components/FaqSection.tsx b/src/app/components/FaqSection.tsx new file mode 100644 index 0000000..bf24794 --- /dev/null +++ b/src/app/components/FaqSection.tsx @@ -0,0 +1,44 @@ +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; + +export interface FaqItem { + question: string; + answer: string; +} + +interface FaqSectionProps { + faqs: FaqItem[]; + className?: string; +} + +export function FaqSection({ faqs, className }: Readonly) { + // JSON-LD FAQPage schema + const jsonLd = { + '@context': 'https://schema.org', + '@type': 'FAQPage', + mainEntity: faqs.map((faq) => ({ + '@type': 'Question', + name: faq.question, + acceptedAnswer: { + '@type': 'Answer', + text: faq.answer, + }, + })), + }; + + return ( +
+