blob: d6fc6dcb1eddef3d9f6e4707cc24101e0a17fb55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
import type { Metadata } from "next";
import { CredentialsHome } from "@/components/credentials/CredentialsHome";
import { CredentialsShell } from "@/components/credentials/CredentialsShell";
import { getCredentialsMessages } from "@/lib/credentials-messages";
import { siteOrigin } from "@/lib/hosts.server";
import { getLocale } from "@/lib/locale.server";
export async function generateMetadata(): Promise<Metadata> {
return { title: getCredentialsMessages(await getLocale()).metadata.home };
}
export default async function CredentialsHomePage() {
const locale = await getLocale();
const { home } = getCredentialsMessages(locale);
return (
<CredentialsShell
eyebrow={home.eyebrow}
title={home.title}
description={home.description}
locale={locale}
site="authorize"
>
<CredentialsHome
locale={locale}
consoleOrigin={await siteOrigin("console")}
/>
</CredentialsShell>
);
}
|