import { auth } from "@/auth";
import { NotAuthorized, ShellEmpty } from "@/components/ShellEmpty";
import type { SessionWithExtras } from "@/lib/session";
import { canSee } from "@/lib/session";

export default async function Page() {
  const session = (await auth()) as SessionWithExtras | null;
  if (!canSee(session, "integrations")) return <NotAuthorized />;
  return (
    <ShellEmpty
      title="Integrations"
      description="Webhooks, outbound integrations, and external IdP configuration."
      milestone="M15.2"
      details="Webhook delivery (signed payloads, retry-with-backoff, dead-letter queue) lands alongside the headless-product API surface."
    />
  );
}
