import { useTranslations } from "next-intl"; const FAQs = () => { const t = useTranslations("HomePage.FAQs"); const faqs = [ { id: 1, question: t("questions.question1"), answer: t("questions.answer1"), }, { id: 2, question: t("questions.question2"), answer: t("questions.answer2"), }, { id: 3, question: t("questions.question3"), answer: t("questions.answer3"), }, { id: 4, question: t("questions.question4"), answer: t("questions.answer4"), }, ]; return (

{t("title")}

{t("description")}

{faqs.map((faq) => (
{faq.question}
{faq.answer}
))}
); }; export { FAQs };