Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web/app/authorize/applications/page.tsx
blob: 988771e3507094ff62e187db50a7174f4a4ad955 (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
// 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 { AllowedApplications } from "@/components/credentials/AllowedApplications";
import { CredentialsShell } from "@/components/credentials/CredentialsShell";
import { getCredentialsMessages } from "@/lib/credentials-messages";
import { getLocale } from "@/lib/locale.server";

export async function generateMetadata(): Promise<Metadata> {
  return { title: getCredentialsMessages(await getLocale()).metadata.allowed };
}

export default async function AllowedApplicationsPage() {
  const locale = await getLocale();
  const { allowed } = getCredentialsMessages(locale);
  return (
    <CredentialsShell
      eyebrow={allowed.eyebrow}
      title={allowed.title}
      description={allowed.description}
      locale={locale}
      site="authorize"
    >
      <AllowedApplications locale={locale} />
    </CredentialsShell>
  );
}