MCPcopy
hub / github.com/codeaashu/claude-code / RestoreOptionDescription

Function RestoreOptionDescription

src/components/MessageSelector.tsx:416–460  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isSummarizeOptionFunction · 0.85

Tested by

no test coverage detected