返回 AiToEarn
1 /**
2 * DataProtectionAgreementPage - 数据保护协议页面
3 * 展示 AiToEarn 平台的数据保护协议和 GDPR 合规信息
4 */
5 import type { Metadata } from 'next'
6 import { useTranslation } from '@/app/i18n'
7 import { fallbackLng, languages } from '@/app/i18n/settings'
8 import { getMetadata } from '@/utils/metadata'
9 import DataProtectionContent from './DataProtectionContent'
10
11 export async function generateMetadata({
12 params,
13 }: {
14 params: Promise<{ lng: string }>
15 }): Promise<Metadata> {
16 let { lng } = await params
17 if (!languages.includes(lng))
18 lng = fallbackLng
19
20 const { t } = await useTranslation(lng, 'websit')
21
22 return getMetadata(
23 {
24 title: t('dataProtection.title'),
25 description: t('dataProtection.description'),
26 keywords: t('dataProtection.keywords'),
27 },
28 lng,
29 '/websit/data-protection-agreement',
30 )
31 }
32
33 export default function DataProtectionAgreementPage() {
34 return <DataProtectionContent />
35 }
36
36 lines Plain Text