import { Box, List, ListItem, Text, useColorMode } from "@chakra-ui/react"; import { useTranslation } from "next-i18next"; import { Container } from "./Container"; const FAQS = Array.from({ length: 2 }); export function Faq() { const { colorMode } = useColorMode(); const { t } = useTranslation("index"); const headingColorClass = colorMode === "light" ? "text-gray-900" : "text-white"; const textColorClass = colorMode === "light" ? "text-gray-700" : "text-gray-100"; return ( {t("faq_title")} {FAQS.map((_, index) => { return ( {t(`faq_items.q${index as 0}`)} {t(`faq_items.a${index as 0}`)} ); })} ); }