Connect {info.name}
{aiMethodLabel(provider, method)}
{state.phase === "connected" ? (
<>
Connected. This account is saved in Connections and can be reused.
>
) : (
<>
{unsupported ? (
{state.phase === "unsupported"
? state.message
: "This provider does not offer a subscription connection."}
) : (
<>
{(state.phase === "error" || state.phase === "expired") && (
{state.message}
)}
{state.phase === "cancelled" && (
Sign-in cancelled. No connection was created.
)}
{method === "api_key" ? (
) : busy ? (
) : state.phase === "waiting" ? (
{provider === "anthropic" ? (
) : (
)}
) : (
Sign in with your {info.subscriptionName}.
)}
>
)}
{!unsupported &&
(method === "api_key" ? (
) : state.phase === "waiting" ? (
provider === "anthropic" ? (
) : (
Waiting for sign-in…
)
) : (
))}
>
)}
);
}