MCPcopy Create free account
hub / github.com/codeaashu/claude-code / DiscoverPluginsKeyHint

Function DiscoverPluginsKeyHint

src/commands/plugin/DiscoverPlugins.tsx:651–701  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

649 </Box>;
650}
651function DiscoverPluginsKeyHint(t0) {
652 const $ = _c(10);
653 const {
654 hasSelection,
655 canToggle
656 } = t0;
657 let t1;
658 if ($[0] !== hasSelection) {
659 t1 = hasSelection && <ConfigurableShortcutHint action="plugin:install" context="Plugin" fallback="i" description="install" bold={true} />;
660 $[0] = hasSelection;
661 $[1] = t1;
662 } else {
663 t1 = $[1];
664 }
665 let t2;
666 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
667 t2 = <Text>type to search</Text>;
668 $[2] = t2;
669 } else {
670 t2 = $[2];
671 }
672 let t3;
673 if ($[3] !== canToggle) {
674 t3 = canToggle && <ConfigurableShortcutHint action="plugin:toggle" context="Plugin" fallback="Space" description="toggle" />;
675 $[3] = canToggle;
676 $[4] = t3;
677 } else {
678 t3 = $[4];
679 }
680 let t4;
681 let t5;
682 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
683 t4 = <ConfigurableShortcutHint action="select:accept" context="Select" fallback="Enter" description="details" />;
684 t5 = <ConfigurableShortcutHint action="confirm:no" context="Confirmation" fallback="Esc" description="back" />;
685 $[5] = t4;
686 $[6] = t5;
687 } else {
688 t4 = $[5];
689 t5 = $[6];
690 }
691 let t6;
692 if ($[7] !== t1 || $[8] !== t3) {
693 t6 = <Box marginTop={1}><Text dimColor={true} italic={true}><Byline>{t1}{t2}{t3}{t4}{t5}</Byline></Text></Box>;
694 $[7] = t1;
695 $[8] = t3;
696 $[9] = t6;
697 } else {
698 t6 = $[9];
699 }
700 return t6;
701}
702
703/**
704 * Context-aware empty state message for the Discover screen

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected