17 lines
329 B
JavaScript
17 lines
329 B
JavaScript
export function FaqSection({ items }) {
|
|
if (!items?.length) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className="faq-grid">
|
|
{items.map((item) => (
|
|
<article key={item.question} className="faq-item">
|
|
<h4>{item.question}</h4>
|
|
<p>{item.answer}</p>
|
|
</article>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|