MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / FileIcon

Function FileIcon

packages/web/src/components/ui/fileIcon/fileIcon.tsx:11–23  ·  view source on GitHub ↗
({ language }: FileIconProps)

Source from the content-addressed store, hash-verified

9}
10
11export const FileIcon = ({ language }: FileIconProps) => {
12 const iconifyName = languageMetadataMap[language]?.iconify;
13
14 if (iconifyName) {
15 return (
16 <Icon icon={iconifyName} className="w-4 h-4 flex-shrink-0" />
17 )
18 } else {
19 return (
20 <QuestionMarkCircledIcon className="w-4 h-4 flex-shrink-0" />
21 )
22 }
23};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected