iconForIntegration() — astro Function Reference
Architecture documentation for the iconForIntegration() function in icons.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d64bb64c_a73d_a0eb_2cd6_a08051404fe3["iconForIntegration()"] 9038303f_ab7f_4de5_58f6_bbab3a318f46["icons.ts"] d64bb64c_a73d_a0eb_2cd6_a08051404fe3 -->|defined in| 9038303f_ab7f_4de5_58f6_bbab3a318f46 4fd6962b_8896_d71b_8708_24cf922f4af1["randomFromArray()"] d64bb64c_a73d_a0eb_2cd6_a08051404fe3 -->|calls| 4fd6962b_8896_d71b_8708_24cf922f4af1 style d64bb64c_a73d_a0eb_2cd6_a08051404fe3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/apps/utils/icons.ts lines 19–26
export function iconForIntegration(integration: Integration) {
const icons = integration.categories
.filter((category: string) => categoryIcons.has(category))
.map((category: string) => categoryIcons.get(category)!)
.flat();
return randomFromArray(icons);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does iconForIntegration() do?
iconForIntegration() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/apps/utils/icons.ts.
Where is iconForIntegration() defined?
iconForIntegration() is defined in packages/astro/src/runtime/client/dev-toolbar/apps/utils/icons.ts at line 19.
What does iconForIntegration() call?
iconForIntegration() calls 1 function(s): randomFromArray.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free