MCPcopy Index your code
hub / github.com/winfunc/opcode / getScopeIcon

Function getScopeIcon

src/components/MCPServerList.tsx:168–179  ·  view source on GitHub ↗
(scope: string)

Source from the content-addressed store, hash-verified

166 * Gets icon for scope
167 */
168 const getScopeIcon = (scope: string) => {
169 switch (scope) {
170 case "local":
171 return <User className="h-3 w-3 text-slate-500" />;
172 case "project":
173 return <FolderOpen className="h-3 w-3 text-orange-500" />;
174 case "user":
175 return <FileText className="h-3 w-3 text-purple-500" />;
176 default:
177 return null;
178 }
179 };
180
181 /**
182 * Gets scope display name

Callers 1

MCPServerListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected