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

Function getResourceIconSvg

website/src/scripts/utils.ts:505–510  ·  view source on GitHub ↗
(type: string, size = 20)

Source from the content-addressed store, hash-verified

503 * Get SVG icon HTML for resource type
504 */
505export function getResourceIconSvg(type: string, size = 20): string {
506 const iconName = getResourceIcon(type);
507 const icon = iconDefs[iconName] || iconDefs.document;
508 const fill = icon.fill ? 'fill="currentColor"' : 'fill="none"';
509 return `<svg viewBox="0 0 24 24" width="${size}" height="${size}" ${fill} aria-hidden="true">${icon.path}</svg>`;
510}
511
512/**
513 * Generate HTML for install dropdown button

Callers 1

renderLocalPluginModalFunction · 0.90

Calls 1

getResourceIconFunction · 0.85

Tested by

no test coverage detected