'use client'; import { useState } from 'react'; interface SupportTabsProps { translations: any; } export default function SupportTabs({ translations }: SupportTabsProps) { const [activeTab, setActiveTab] = useState('faq'); const t = translations; return ( <>
{t.tabs && Object.entries(t.tabs).map(([key, label]) => ( ))}
{activeTab === 'faq' && (

{t.faq?.title}

{t.faq?.categories?.map((category: any, index: number) => (

{category.name}

{category.questions?.map((item: any, qIndex: number) => (

{item.q}

{item.a}

))}
))}
)} {activeTab === 'contact' && (

{t.contactSupport?.title}

{t.contactSupport?.methods?.map((method: any, index: number) => (
{method.icon}

{method.type}

{method.value}

{method.description}

))}
)} {(activeTab === 'docs' || activeTab === 'tickets') && (

功能开发中

该功能正在开发中,敬请期待。

)} ); }