// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1 import type { Metadata } from "next"; import { AccountShell } from "@/components/AccountShell"; import { AuthForm } from "@/components/AuthForm"; import { getLocale } from "@/lib/locale.server"; import { getMessages } from "@/lib/localization"; export async function generateMetadata(): Promise { const { metadata } = getMessages(await getLocale()); return { title: metadata.loginTitle, robots: { index: false, follow: false }, }; } interface LoginPageProps { searchParams: Promise<{ google?: string }>; } export default async function LoginPage({ searchParams }: LoginPageProps) { const { google } = await searchParams; const locale = await getLocale(); const { account, auth } = getMessages(locale); const initialMessage = google === "failed" ? auth.googleSignInFailed : undefined; return ( ); }