MCPcopy Index your code
hub / github.com/github/awesome-copilot / getResourceIcon

Function getResourceIcon

website/src/scripts/utils.ts:460–470  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

458 * Get icon for resource type (returns SVG icon name)
459 */
460export function getResourceIcon(type: string): string {
461 const icons: Record<string, string> = {
462 agent: "robot",
463 instruction: "document",
464 skill: "lightning",
465 hook: "hook",
466 workflow: "workflow",
467 plugin: "plug",
468 };
469 return icons[type] || "document";
470}
471
472// Icon definitions with fill/stroke type info
473const iconDefs: Record<string, { path: string; fill?: boolean }> = {

Callers 1

getResourceIconSvgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected