(t0)
| 415 | } |
| 416 | } |
| 417 | function RestoreOptionDescription(t0) { |
| 418 | const $ = _c(11); |
| 419 | const { |
| 420 | selectedRestoreOption, |
| 421 | canRestoreCode, |
| 422 | diffStatsForRestore |
| 423 | } = t0; |
| 424 | const showCodeRestore = canRestoreCode && (selectedRestoreOption === "both" || selectedRestoreOption === "code"); |
| 425 | let t1; |
| 426 | if ($[0] !== selectedRestoreOption) { |
| 427 | t1 = getRestoreOptionConversationText(selectedRestoreOption); |
| 428 | $[0] = selectedRestoreOption; |
| 429 | $[1] = t1; |
| 430 | } else { |
| 431 | t1 = $[1]; |
| 432 | } |
| 433 | let t2; |
| 434 | if ($[2] !== t1) { |
| 435 | t2 = <Text dimColor={true}>{t1}</Text>; |
| 436 | $[2] = t1; |
| 437 | $[3] = t2; |
| 438 | } else { |
| 439 | t2 = $[3]; |
| 440 | } |
| 441 | let t3; |
| 442 | if ($[4] !== diffStatsForRestore || $[5] !== selectedRestoreOption || $[6] !== showCodeRestore) { |
| 443 | t3 = !isSummarizeOption(selectedRestoreOption) && (showCodeRestore ? <RestoreCodeConfirmation diffStatsForRestore={diffStatsForRestore} /> : <Text dimColor={true}>The code will be unchanged.</Text>); |
| 444 | $[4] = diffStatsForRestore; |
| 445 | $[5] = selectedRestoreOption; |
| 446 | $[6] = showCodeRestore; |
| 447 | $[7] = t3; |
| 448 | } else { |
| 449 | t3 = $[7]; |
| 450 | } |
| 451 | let t4; |
| 452 | if ($[8] !== t2 || $[9] !== t3) { |
| 453 | t4 = <Box flexDirection="column">{t2}{t3}</Box>; |
| 454 | $[8] = t2; |
| 455 | $[9] = t3; |
| 456 | $[10] = t4; |
| 457 | } else { |
| 458 | t4 = $[10]; |
| 459 | } |
| 460 | return t4; |
| 461 | } |
| 462 | function RestoreCodeConfirmation(t0) { |
| 463 | const $ = _c(14); |
| 464 | const { |
nothing calls this directly
no test coverage detected