getIcon() — supabase Function Reference
Architecture documentation for the getIcon() function in explore-more.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 08b54c2e_9557_fab1_b80d_ea2df7a51c6d["getIcon()"] e841dd04_36e3_956e_3884_c7f4a1d21688["ExploreMore()"] e841dd04_36e3_956e_3884_c7f4a1d21688 -->|calls| 08b54c2e_9557_fab1_b80d_ea2df7a51c6d style 08b54c2e_9557_fab1_b80d_ea2df7a51c6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/learn/components/explore-more.tsx lines 17–33
function getIcon(itemType?: string) {
if (!itemType) return BookOpen
const lowerType = itemType.toLowerCase()
if (lowerType === 'doc' || lowerType === 'documentation') {
return BookA
}
if (lowerType === 'reference' || lowerType === 'api') {
return Code
}
if (lowerType === 'community' || lowerType === 'forum') {
return Users
}
if (lowerType === 'video' || lowerType === 'tutorial') {
return IconYoutubeSolid
}
return BookA // default icon
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getIcon() do?
getIcon() is a function in the supabase codebase.
What calls getIcon()?
getIcon() is called by 1 function(s): ExploreMore.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free