import { getTranslations, Locale, getNavigationPaths } from '@/lib/i18n'; import { generateMetadata as generateSEOMetadata } from '@/lib/seo'; import Layout from '@/components/Layout'; interface SupportPageProps { params: { locale: Locale; }; } export async function generateStaticParams() { const locales = ['zh-CN', 'zh-TW', 'en']; return locales.map((locale) => ({ locale, })); } export async function generateMetadata({ params }: SupportPageProps) { return generateSEOMetadata(params.locale, 'support'); } export default async function SupportPage({ params }: SupportPageProps) { const { locale } = params; const [common, support] = await Promise.all([ getTranslations(locale, 'common'), getTranslations(locale, 'support'), ]); const navigationPaths = getNavigationPaths(locale); const navigation = [ { name: common.navigation.home, href: navigationPaths.find((p) => p.key === 'home')?.path || '/', }, { name: common.navigation.products, href: navigationPaths.find((p) => p.key === 'products')?.path || '/products', }, { name: common.navigation.news, href: navigationPaths.find((p) => p.key === 'news')?.path || '/news', }, { name: common.navigation.support, href: navigationPaths.find((p) => p.key === 'support')?.path || '/support', }, { name: common.navigation.about, href: navigationPaths.find((p) => p.key === 'about')?.path || '/about', }, ]; return ( {/* Hero Section */}

{support.title}

{support.subtitle}

{/* Contact Methods */}

{support.sections.contact.title}

{support.sections.contact.subtitle}

{support.sections.contact.methods.map((method: any, index: number) => (
{method.icon}

{method.title}

{method.value}

{method.description}

))}
{/* Help Resources */}

{support.sections.resources.title}

{support.sections.resources.subtitle}

{support.sections.resources.items.map((resource: any, index: number) => (
{resource.icon}

{resource.title}

{resource.description}

))}
{/* FAQ Section */}

{support.sections.faq.title}

{support.sections.faq.subtitle}

{support.sections.faq.items.map((item: any, index: number) => (

Q {item.question}

{item.answer}

))}
{/* Contact CTA */}

{locale === 'en' ? 'Still Need Help?' : locale === 'zh-TW' ? '仍需要幫助?' : '仍需要帮助?'}

{locale === 'en' ? 'Our support team is ready to assist you with any questions or issues.' : locale === 'zh-TW' ? '我們的支援團隊隨時準備協助您解決任何問題。' : '我们的支持团队随时准备协助您解决任何问题。'}

); }