(type: string, size = 20)
| 503 | * Get SVG icon HTML for resource type |
| 504 | */ |
| 505 | export 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 |
no test coverage detected