import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { AuditLogsConsole } from "@/modules/audit/audit-logs-console";
import { buildPageMetadata } from "@/lib/page-metadata";
import { PRD_AUDIT_VIEW } from "@/lib/admin-prd";
import type { Metadata } from "next";

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

export default function AdminAuditLogsPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={[PRD_AUDIT_VIEW]}>
        <AuditLogsConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}