import { ChevronDown } from 'lucide-react'; import { t } from '../i18n'; import { SectionHeading } from './SectionHeading'; export const FAQ = () => { const termsLabel = 'worldmonitor.app/docs/terms'; const faqs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(n => { const answer = t(`welcome.faq.a${n}`); return { q: t(`welcome.faq.q${n}`), a: n === 11 ? answer.replace(`${termsLabel}.`, '') : answer, termsHref: n === 11 ? '/docs/terms' : undefined, open: n === 1, }; }); return (
{faqs.map((faq, i) => (
{faq.q}
{faq.a} {faq.termsHref && ( {termsLabel} )}
))}
); };