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

Function EmptyStateMessage

src/commands/plugin/DiscoverPlugins.tsx:706–780  ·  view source on GitHub ↗

* Context-aware empty state message for the Discover screen

(t0)

Source from the content-addressed store, hash-verified

704 * Context-aware empty state message for the Discover screen
705 */
706function EmptyStateMessage(t0) {
707 const $ = _c(6);
708 const {
709 reason
710 } = t0;
711 switch (reason) {
712 case "git-not-installed":
713 {
714 let t1;
715 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
716 t1 = <><Text dimColor={true}>Git is required to install marketplaces.</Text><Text dimColor={true}>Please install git and restart Claude Code.</Text></>;
717 $[0] = t1;
718 } else {
719 t1 = $[0];
720 }
721 return t1;
722 }
723 case "all-blocked-by-policy":
724 {
725 let t1;
726 if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
727 t1 = <><Text dimColor={true}>Your organization policy does not allow any external marketplaces.</Text><Text dimColor={true}>Contact your administrator.</Text></>;
728 $[1] = t1;
729 } else {
730 t1 = $[1];
731 }
732 return t1;
733 }
734 case "policy-restricts-sources":
735 {
736 let t1;
737 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
738 t1 = <><Text dimColor={true}>Your organization restricts which marketplaces can be added.</Text><Text dimColor={true}>Switch to the Marketplaces tab to view allowed sources.</Text></>;
739 $[2] = t1;
740 } else {
741 t1 = $[2];
742 }
743 return t1;
744 }
745 case "all-marketplaces-failed":
746 {
747 let t1;
748 if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
749 t1 = <><Text dimColor={true}>Failed to load marketplace data.</Text><Text dimColor={true}>Check your network connection.</Text></>;
750 $[3] = t1;
751 } else {
752 t1 = $[3];
753 }
754 return t1;
755 }
756 case "all-plugins-installed":
757 {
758 let t1;
759 if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
760 t1 = <><Text dimColor={true}>All available plugins are already installed.</Text><Text dimColor={true}>Check for new plugins later or add more marketplaces.</Text></>;
761 $[4] = t1;
762 } else {
763 t1 = $[4];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected