mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 07:06:36 +08:00
5a8722ff07
接入无 URL 前缀的 zh-CN/en,顶栏与外观设置可切换语言;选择写入 cookie 后刷新生效。
28 lines
683 B
TypeScript
28 lines
683 B
TypeScript
import { Suspense } from 'react';
|
|
import { Globe } from 'lucide-react';
|
|
import { getTranslations } from 'next-intl/server';
|
|
import { LoadingStateWithBorder } from '@/components/layout/loading';
|
|
import { ZonePageClient } from './page-client';
|
|
|
|
export async function generateStaticParams() {
|
|
return [{ zoneId: '1' }];
|
|
}
|
|
|
|
export default async function ZonePage() {
|
|
const t = await getTranslations('websites');
|
|
return (
|
|
<Suspense
|
|
fallback={
|
|
<div className='py-6 px-1'>
|
|
<LoadingStateWithBorder
|
|
icon={Globe}
|
|
description={t('loadingDetail')}
|
|
/>
|
|
</div>
|
|
}
|
|
>
|
|
<ZonePageClient />
|
|
</Suspense>
|
|
);
|
|
}
|