import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { IntegrationSitesConsole } from "@/modules/integration/integration-sites-console";
import { PRD_INTEGRATION_ACCESS_ANY } from "@/lib/admin-prd";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

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

export default function ConfigIntegrationSitesPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={PRD_INTEGRATION_ACCESS_ANY}>
        <IntegrationSitesConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
