mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
55af709e51
Wrap the Threads documentation surface with the existing InsecurePasswordProtected component via a thin ThreadsEarlyAccess wrapper that surfaces Threads-specific splash copy and the shareable early-access URL. Register the wrapper in both route handlers so the gate works for docs under both (home) and integrations slug routes. Wraps learn/threads.mdx and reference/v2/hooks/useThreads.mdx; the remaining Threads pages are wrapped in the follow-up commit that also fixes the cross-links to the new Self-Hosting docs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { InsecurePasswordProtected } from "./insecure-password-protected";
|
|
|
|
const REQUEST_ACCESS_URL = "https://go.copilotkit.ai/threads-early-access";
|
|
|
|
const splash = (
|
|
<div className="space-y-4 text-center">
|
|
<h3 className="text-xl font-bold">Threads is in early access</h3>
|
|
<div className="text-base mx-auto">
|
|
<p>
|
|
Threads — persistent, resumable conversations powered by the CopilotKit
|
|
Intelligence Platform — is currently available to early access
|
|
customers.
|
|
<a
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
href={REQUEST_ACCESS_URL}
|
|
className="ml-1 underline"
|
|
>
|
|
Request access here.
|
|
</a>
|
|
</p>
|
|
<p>
|
|
Already an early adopter? Enter your password below — we'll
|
|
remember it on this device.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export function ThreadsEarlyAccess({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<InsecurePasswordProtected unauthenticatedComponent={splash}>
|
|
{children}
|
|
</InsecurePasswordProtected>
|
|
);
|
|
}
|