import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { PRD_REPORTS_VIEW_ACCESS_ANY } from "@/lib/admin-prd";
import { buildPageMetadata } from "@/lib/page-metadata";
import { ReportsConsole } from "@/modules/reports/reports-console";
import type { Metadata } from "next";

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

export default function AdminReportsPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={PRD_REPORTS_VIEW_ACCESS_ANY}>
        <ReportsConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
