(t0)
| 45 | return t1; |
| 46 | } |
| 47 | export function AssistantTextMessage(t0) { |
| 48 | const $ = _c(34); |
| 49 | const { |
| 50 | param: t1, |
| 51 | addMargin, |
| 52 | shouldShowDot, |
| 53 | verbose, |
| 54 | onOpenRateLimitOptions |
| 55 | } = t0; |
| 56 | const { |
| 57 | text |
| 58 | } = t1; |
| 59 | const isSelected = useContext(MessageActionsSelectedContext); |
| 60 | if (isEmptyMessageText(text)) { |
| 61 | return null; |
| 62 | } |
| 63 | if (isRateLimitErrorMessage(text)) { |
| 64 | let t2; |
| 65 | if ($[0] !== onOpenRateLimitOptions || $[1] !== text) { |
| 66 | t2 = <RateLimitMessage text={text} onOpenRateLimitOptions={onOpenRateLimitOptions} />; |
| 67 | $[0] = onOpenRateLimitOptions; |
| 68 | $[1] = text; |
| 69 | $[2] = t2; |
| 70 | } else { |
| 71 | t2 = $[2]; |
| 72 | } |
| 73 | return t2; |
| 74 | } |
| 75 | switch (text) { |
| 76 | case NO_RESPONSE_REQUESTED: |
| 77 | { |
| 78 | return null; |
| 79 | } |
| 80 | case PROMPT_TOO_LONG_ERROR_MESSAGE: |
| 81 | { |
| 82 | let t2; |
| 83 | if ($[3] === Symbol.for("react.memo_cache_sentinel")) { |
| 84 | t2 = getUpgradeMessage("warning"); |
| 85 | $[3] = t2; |
| 86 | } else { |
| 87 | t2 = $[3]; |
| 88 | } |
| 89 | const upgradeHint = t2; |
| 90 | let t3; |
| 91 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 92 | t3 = <MessageResponse height={1}><Text color="error">Context limit reached · /compact or /clear to continue{upgradeHint ? ` · ${upgradeHint}` : ""}</Text></MessageResponse>; |
| 93 | $[4] = t3; |
| 94 | } else { |
| 95 | t3 = $[4]; |
| 96 | } |
| 97 | return t3; |
| 98 | } |
| 99 | case CREDIT_BALANCE_TOO_LOW_ERROR_MESSAGE: |
| 100 | { |
| 101 | let t2; |
| 102 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 103 | t2 = <MessageResponse height={1}><Text color="error">Credit balance too low · Add funds: https://platform.claude.com/settings/billing</Text></MessageResponse>; |
| 104 | $[5] = t2; |
nothing calls this directly
no test coverage detected