'use client'; import { Table, TableBody, TableCell, TableRow } from '@workspace/ui/components/table'; import { useTranslations } from 'next-intl'; import AppleForm from './forms/apple-form'; import DeviceForm from './forms/device-form'; import EmailSettingsForm from './forms/email-settings-form'; import FacebookForm from './forms/facebook-form'; import GithubForm from './forms/github-form'; import GoogleForm from './forms/google-form'; import PhoneSettingsForm from './forms/phone-settings-form'; import TelegramForm from './forms/telegram-form'; export default function Page() { const t = useTranslations('auth-control'); const formSections = [ { title: t('communicationMethods'), forms: [{ component: EmailSettingsForm }, { component: PhoneSettingsForm }], }, { title: t('socialAuthMethods'), forms: [ { component: AppleForm }, { component: GoogleForm }, { component: FacebookForm }, { component: GithubForm }, { component: TelegramForm }, ], }, { title: t('deviceAuthMethods'), forms: [{ component: DeviceForm }], }, ]; return (
{formSections.map((section, sectionIndex) => (

{section.title}

{section.forms.map((form, formIndex) => { const FormComponent = form.component; return ( ); })}
))}
); }