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

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

export default function AdminUsersPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={[PRD_ADMIN_USER_MANAGE]}>
        <AdminUsersConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
