"use client"; import { OAuthSessionError } from "src/atproto-oauth"; export function OAuthErrorMessage({ error, className, }: { error: OAuthSessionError; className?: string; }) { const signInUrl = `/api/oauth/login?redirect_url=${encodeURIComponent(window.location.href)}${error.did ? `&handle=${encodeURIComponent(error.did)}` : ""}`; return (