"use client"; import { useState } from "react"; import { Section } from "../Section"; import { FAQ_CONFIG } from "@/config/course"; export function FAQSection() { const [openIndex, setOpenIndex] = useState(null); return (

{FAQ_CONFIG.title}

{FAQ_CONFIG.items.map((item, i) => (
{openIndex === i && (
{item.a}
)}
))}
); }