mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 19:07:56 +09:00
简略新建 成员一览 页面
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
Reference in New Issue
Block a user