简略新建 成员一览 页面

This commit is contained in:
2026-09-24 09:23:56 +08:00
parent f862b76803
commit 491dd99cd3
5 changed files with 184 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { notFound } from "next/navigation";
import { MembersPage } from "@/components/members/members-page";
import { getLocaleMessages, isLocale } from "@/lib/i18n";
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
if (!isLocale(locale)) notFound();
return { title: getLocaleMessages(locale).footer.columns[1].links[1] };
}
export default async function MembersRoute({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params;
if (!isLocale(locale)) notFound();
return <MembersPage locale={locale} />;
}