MCPcopy Create free account
hub / github.com/Noumena-Network/code / OAuthStatusMessage

Function OAuthStatusMessage

src/components/ConsoleOAuthFlow.tsx:363–632  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

361 consoleOAuthSession: ConsoleOAuthSessionState;
362};
363function OAuthStatusMessage(t0) {
364 const $ = _c(51);
365 const {
366 oauthStatus,
367 mode,
368 startingMessage,
369 forcedMethodMessage,
370 showPastePrompt,
371 pastedCode,
372 setPastedCode,
373 cursorOffset,
374 setCursorOffset,
375 textInputColumns,
376 handleSubmitCode,
377 setOAuthStatus,
378 setLoginWithClaudeAi,
379 consoleOAuthSession
380 } = t0;
381 switch (oauthStatus.state) {
382 case "idle":
383 {
384 const t1 = startingMessage ? startingMessage : "Code can be used with your managed Noumena plan or billed based on API usage through your Noumena API account.";
385 let t2;
386 if ($[0] !== t1) {
387 t2 = <Text bold={true}>{t1}</Text>;
388 $[0] = t1;
389 $[1] = t2;
390 } else {
391 t2 = $[1];
392 }
393 let t3;
394 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
395 t3 = <Text>Select login method:</Text>;
396 $[2] = t3;
397 } else {
398 t3 = $[2];
399 }
400 let t4;
401 if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
402 t4 = {
403 label: <Text>Noumena managed account ·{" "}<Text dimColor={true}>plan-backed access</Text>{"\n"}</Text>,
404 value: "claudeai"
405 };
406 $[3] = t4;
407 } else {
408 t4 = $[3];
409 }
410 let t5;
411 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
412 t5 = {
413 label: <Text>Noumena API account ·{" "}<Text dimColor={true}>usage-based billing</Text>{"\n"}</Text>,
414 value: "console"
415 };
416 $[4] = t5;
417 } else {
418 t5 = $[4];
419 }
420 let t6;

Callers

nothing calls this directly

Calls 2

logEventFunction · 0.70
handleSubmitCodeFunction · 0.70

Tested by

no test coverage detected