mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 22:46:38 +08:00
5a8722ff07
接入无 URL 前缀的 zh-CN/en,顶栏与外观设置可切换语言;选择写入 cookie 后刷新生效。
31 lines
823 B
TypeScript
31 lines
823 B
TypeScript
import { Cloud } from 'lucide-react';
|
|
import { getTranslations } from 'next-intl/server';
|
|
import { Suspense } from 'react';
|
|
|
|
import { LoadingStateWithBorder } from '@/components/layout/loading';
|
|
|
|
import { CloudflareGroupDetailPageClient } from './page-client';
|
|
|
|
/** Placeholder for static export; real ids resolve client-side via useParams. */
|
|
export async function generateStaticParams() {
|
|
return [{ id: '1' }];
|
|
}
|
|
|
|
export default async function CloudflareGroupDetailPage() {
|
|
const t = await getTranslations('cloudflare');
|
|
return (
|
|
<Suspense
|
|
fallback={
|
|
<div className='w-full py-6 px-1'>
|
|
<LoadingStateWithBorder
|
|
icon={Cloud}
|
|
description={t('loadingDetail')}
|
|
/>
|
|
</div>
|
|
}
|
|
>
|
|
<CloudflareGroupDetailPageClient />
|
|
</Suspense>
|
|
);
|
|
}
|