Home / Function/ getIconForLanguageExtension() — ui Function Reference

getIconForLanguageExtension() — ui Function Reference

Architecture documentation for the getIconForLanguageExtension() function in icons.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  5d3f8a0e_5be7_8769_e4b5_ac63ec0a93a9["getIconForLanguageExtension()"]
  b88fcb40_6eb1_ad7a_1f3a_b303dbcfdf60["icons.tsx"]
  5d3f8a0e_5be7_8769_e4b5_ac63ec0a93a9 -->|defined in| b88fcb40_6eb1_ad7a_1f3a_b303dbcfdf60
  style 5d3f8a0e_5be7_8769_e4b5_ac63ec0a93a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/components/icons.tsx lines 192–207

export function getIconForLanguageExtension(language: string) {
  switch (language) {
    case "json":
      return <Icons.json />
    case "css":
      return <Icons.css className="fill-foreground" />
    case "js":
    case "jsx":
    case "ts":
    case "tsx":
    case "typescript":
      return <Icons.ts className="fill-foreground" />
    default:
      return <FileIcon />
  }
}

Subdomains

Frequently Asked Questions

What does getIconForLanguageExtension() do?
getIconForLanguageExtension() is a function in the ui codebase, defined in apps/v4/components/icons.tsx.
Where is getIconForLanguageExtension() defined?
getIconForLanguageExtension() is defined in apps/v4/components/icons.tsx at line 192.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free