Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

mainroot / apps / web / app / console / credentials / [clientId] / page.tsx

1.3 KiB · Raw · Log

// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later

import type { Metadata } from "next";
import { ApplicationDetails } from "@/components/credentials/ApplicationDetails";
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.application,
  };
}

interface ApplicationPageProps {
  params: Promise<{ clientId: string }>;
}

export default async function ApplicationPage({
  params,
}: ApplicationPageProps) {
  const { clientId } = await params;
  const locale = await getLocale();
  const { portal, metadata, common } = getCredentialsMessages(locale);
  return (
    <CredentialsShell
      eyebrow={portal.title}
      title={metadata.application}
      locale={locale}
      site="console"
    >
      <ApplicationDetails
        locale={locale}
        clientId={decodeURIComponent(clientId)}
      />
      <p className="credentials-footnote">
        <a href="/credentials">{common.back}</a>
      </p>
    </CredentialsShell>
  );
}