'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) => (
))}
))}
)}
{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') && (
)}
>
);
}