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

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

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