(t0)
| 11 | onDone: (action: IdleReturnAction) => void; |
| 12 | }; |
| 13 | export function IdleReturnDialog(t0) { |
| 14 | const $ = _c(16); |
| 15 | const { |
| 16 | idleMinutes, |
| 17 | totalInputTokens, |
| 18 | onDone |
| 19 | } = t0; |
| 20 | let t1; |
| 21 | if ($[0] !== idleMinutes) { |
| 22 | t1 = formatIdleDuration(idleMinutes); |
| 23 | $[0] = idleMinutes; |
| 24 | $[1] = t1; |
| 25 | } else { |
| 26 | t1 = $[1]; |
| 27 | } |
| 28 | const formattedIdle = t1; |
| 29 | let t2; |
| 30 | if ($[2] !== totalInputTokens) { |
| 31 | t2 = formatTokens(totalInputTokens); |
| 32 | $[2] = totalInputTokens; |
| 33 | $[3] = t2; |
| 34 | } else { |
| 35 | t2 = $[3]; |
| 36 | } |
| 37 | const formattedTokens = t2; |
| 38 | const t3 = `You've been away ${formattedIdle} and this conversation is ${formattedTokens} tokens.`; |
| 39 | let t4; |
| 40 | if ($[4] !== onDone) { |
| 41 | t4 = () => onDone("dismiss"); |
| 42 | $[4] = onDone; |
| 43 | $[5] = t4; |
| 44 | } else { |
| 45 | t4 = $[5]; |
| 46 | } |
| 47 | let t5; |
| 48 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 49 | t5 = <Box flexDirection="column"><Text>If this is a new task, clearing context will save usage and be faster.</Text></Box>; |
| 50 | $[6] = t5; |
| 51 | } else { |
| 52 | t5 = $[6]; |
| 53 | } |
| 54 | let t6; |
| 55 | if ($[7] === Symbol.for("react.memo_cache_sentinel")) { |
| 56 | t6 = { |
| 57 | value: "continue" as const, |
| 58 | label: "Continue this conversation" |
| 59 | }; |
| 60 | $[7] = t6; |
| 61 | } else { |
| 62 | t6 = $[7]; |
| 63 | } |
| 64 | let t7; |
| 65 | if ($[8] === Symbol.for("react.memo_cache_sentinel")) { |
| 66 | t7 = { |
| 67 | value: "clear" as const, |
| 68 | label: "Send message as a new conversation" |
| 69 | }; |
| 70 | $[8] = t7; |
nothing calls this directly
no test coverage detected