返回 CodeWhale
page.tsx
根目录 / web / app / [locale] / signin / page.tsx
1 import { ACCOUNT_ENTRY_COPY } from "@/lib/content/account-entry";
2 import { pickText } from "@/lib/i18n/dictionaries";
3 import { PublicAccountEntry } from "@/components/public-account-entry";
4 import { buildPageMetadata } from "@/lib/page-meta";
5
6 export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
7 const { locale } = await params;
8 return buildPageMetadata({
9 path: "/signin",
10 locale,
11 title: pickText(ACCOUNT_ENTRY_COPY.signIn.metaTitle, locale),
12 description: pickText(ACCOUNT_ENTRY_COPY.metaDescription, locale),
13 });
14 }
15
16 export default async function SignInPage({ params }: { params: Promise<{ locale: string }> }) {
17 const { locale } = await params;
18 return <PublicAccountEntry locale={locale} kind="sign-in" />;
19 }
20
20 lines Plain Text