import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { ConfigHubScreen } from "@/modules/config/config-hub-screen";
import { buildPageMetadata } from "@/lib/page-metadata";
import { PRD_CONFIG_HUB_ACCESS_ANY } from "@/lib/admin-prd";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("config", "hub.title");

export default function AdminConfigHubPage() {
  return (
    <AdminPermissionGate requiredAny={PRD_CONFIG_HUB_ACCESS_ANY}>
      <ConfigHubScreen />
    </AdminPermissionGate>
  );
}
