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 / [accountName] / dashboard / page.tsx

891 B · Raw · Log

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

import type { Metadata } from "next";
import { DashboardClient } from "@/components/DashboardClient";
import { getLocale } from "@/lib/locale.server";
import { getMessages } from "@/lib/localization";

export async function generateMetadata(): Promise<Metadata> {
  const { metadata } = getMessages(await getLocale());
  return {
    title: metadata.dashboardTitle,
    robots: { index: false, follow: false },
  };
}

interface DashboardPageProps {
  params: Promise<{ accountName: string }>;
}

export default async function DashboardPage({ params }: DashboardPageProps) {
  const { accountName } = await params;
  const locale = await getLocale();
  return (
    <DashboardClient
      locale={locale}
      routeAccountName={decodeURIComponent(accountName)}
    />
  );
}