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

Function SkillsMenu

src/components/skills/SkillsMenu.tsx:47–224  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

45 return hasCommandsSkills ? `${skillsPath}, ${getDisplayPath(getSkillsPath(source, 'commands'))}` : skillsPath;
46}
47export function SkillsMenu(t0) {
48 const $ = _c(35);
49 const {
50 onExit,
51 commands
52 } = t0;
53 let t1;
54 if ($[0] !== commands) {
55 t1 = commands.filter(_temp);
56 $[0] = commands;
57 $[1] = t1;
58 } else {
59 t1 = $[1];
60 }
61 const skills = t1;
62 let groups;
63 if ($[2] !== skills) {
64 groups = {
65 policySettings: [],
66 userSettings: [],
67 projectSettings: [],
68 localSettings: [],
69 flagSettings: [],
70 plugin: [],
71 mcp: []
72 };
73 for (const skill of skills) {
74 const source = skill.source as SkillSource;
75 if (source in groups) {
76 groups[source].push(skill);
77 }
78 }
79 for (const group of Object.values(groups)) {
80 group.sort(_temp2);
81 }
82 $[2] = skills;
83 $[3] = groups;
84 } else {
85 groups = $[3];
86 }
87 const skillsBySource = groups;
88 let t2;
89 if ($[4] !== onExit) {
90 t2 = () => {
91 onExit("Skills dialog dismissed", {
92 display: "system"
93 });
94 };
95 $[4] = onExit;
96 $[5] = t2;
97 } else {
98 t2 = $[5];
99 }
100 const handleCancel = t2;
101 if (skills.length === 0) {
102 let t3;
103 if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
104 t3 = <Text dimColor={true}>Create skills in .claude/skills/ or ~/.claude/skills/</Text>;

Callers

nothing calls this directly

Calls 6

onExitFunction · 0.85
getSourceTitleFunction · 0.85
getSourceSubtitleFunction · 0.85
pluralFunction · 0.85
valuesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected