"use client";
import { questions } from "@/constants";
import { Plus, X } from "lucide-react";
import { useRef, useState } from "react";
function FAQ() {
const [selectedAccordion, setSelectedAccordion] = useState(null);
const ref = useRef({});
return (
Frequently Asked Questions
{questions.map((question) => (
(ref.current[question.key] = el)}
>
{question.answer}
))}
);
}
export default FAQ;