Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🏗️ Build (push) Failing after 14s
Build & Deploy / 🧪 QA (push) Failing after 1m48s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
30 lines
727 B
TypeScript
30 lines
727 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { H3 } from "./ArticleHeading";
|
|
import { Paragraph } from "./ArticleParagraph";
|
|
|
|
interface FAQItem {
|
|
question: string;
|
|
answer: string;
|
|
}
|
|
|
|
interface FAQSectionProps {
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
/**
|
|
* FAQSection: A simple semantic wrapper for FAQs in blog posts.
|
|
* It can be used by the AI to wrap a list of questions and answers.
|
|
*/
|
|
export const FAQSection: React.FC<FAQSectionProps> = ({ children }) => {
|
|
return (
|
|
<div className="my-16 border-t border-slate-100 pt-12">
|
|
<H3 id="faq">Häufig gestellte Fragen (FAQ)</H3>
|
|
<div className="mt-8 space-y-8">
|
|
{children}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|