Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
719 B
Raw Blame
"use client";

import { Suspense } from "react";
import { useSearchParams } from "next/navigation";
import { SlackBindPage } from "@multica/views/slack";

// /slack/bind?token=<raw> is the bot's "link your account" destination. Suspense
// wraps useSearchParams per Next.js 15's CSR-bailout rule; the loading text
// never paints in practice because the redemption page itself renders the
// "redeeming…" state immediately.
function SlackBindPageContent() {
  const searchParams = useSearchParams();
  const token = searchParams.get("token");
  return <SlackBindPage token={token} />;
}

export default function Page() {
  return (
    <Suspense fallback={null}>
      <SlackBindPageContent />
    </Suspense>
  );
}