import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { PRD_DASHBOARD_ACCESS_ANY } from "@/lib/admin-prd";
import { DashboardPageClient } from "@/modules/dashboard/dashboard-page-client";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("dashboard", "title");

export default function AdminDashboardPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={PRD_DASHBOARD_ACCESS_ANY}>
        <DashboardPageClient />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
