返回 AiToEarn
page.tsx
1 import type { PageParams } from '@/app/globals'
2 import AccountPageCore from '@/app/[lng]/accounts/accountCore'
3 import { useTranslation } from '@/app/i18n'
4 import { getMetadata } from '@/utils/metadata'
5
6 export async function generateMetadata({ params }: PageParams) {
7 const { lng } = await params
8 const { t } = await useTranslation(lng, 'account')
9
10 return await getMetadata(
11 {
12 title: t('seo.title'),
13 description: t('seo.description'),
14 keywords: t('seo.keywords'),
15 },
16 lng,
17 '/accounts',
18 )
19 }
20
21 interface AccountsPageProps {
22 searchParams: {
23 platform?: string
24 spaceId?: string
25 }
26 }
27
28 export default function Page({ searchParams }: AccountsPageProps) {
29 return <AccountPageCore searchParams={searchParams} />
30 }
31
31 lines Plain Text