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

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

export default function AdminRolesPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={[PRD_ADMIN_ROLE_MANAGE]}>
        <AdminRolesConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
