import Link from 'next/link'; import { ArrowRight, ChevronDown } from 'lucide-react'; import { getTranslations } from 'next-intl/server'; import { Button } from '@kit/ui/button'; import { Trans } from '@kit/ui/trans'; import { SitePageHeader } from '~/(marketing)/_components/site-page-header'; export const generateMetadata = async () => { const t = await getTranslations('marketing'); return { title: t('faq'), }; }; async function FAQPage() { const t = await getTranslations('marketing'); // replace this content with translations const faqItems = [ { // or: t('faq.question1') question: `Do you offer a free trial?`, // or: t('faq.answer1') answer: `Yes, we offer a 14-day free trial. You can cancel at any time during the trial period and you won't be charged.`, }, { question: `Can I cancel my subscription?`, answer: `You can cancel your subscription at any time. You can do this from your account settings.`, }, { question: `Where can I find my invoices?`, answer: `You can find your invoices in your account settings.`, }, { question: `What payment methods do you accept?`, answer: `We accept all major credit cards and PayPal.`, }, { question: `Can I upgrade or downgrade my plan?`, answer: `Yes, you can upgrade or downgrade your plan at any time. You can do this from your account settings.`, }, { question: `Do you offer discounts for non-profits?`, answer: `Yes, we offer a 50% discount for non-profits. Please contact us to learn more.`, }, ]; const structuredData = { '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: faqItems.map((item) => { return { '@type': 'Question', name: item.question, acceptedAnswer: { '@type': 'Answer', text: item.answer, }, }; }), }; return ( <>