import Link from "next/link" import { AlertCircle, ShieldCheck } from "lucide-react" /** * Error UI for failed activation handoffs. The success path is handled by * the sibling route.ts handler at /activate/[token] — it sets cookies on the * response and redirects to "/". Errors redirect here with ?reason=… in the * query string. * * The route.ts file takes precedence over this page for matching requests, * but the page is still reachable via a redirect to * /activate/[token]?error=1&reason=… */ export default async function ActivateErrorPage(props: { searchParams: Promise<{ reason?: string; error?: string }> }) { const { reason } = await props.searchParams return (
{reason ?? "Could not exchange the handoff token."}