diff --git a/app/src/features/files/FilesPanel.tsx b/app/src/features/files/FilesPanel.tsx index 7e000c53..32226198 100644 --- a/app/src/features/files/FilesPanel.tsx +++ b/app/src/features/files/FilesPanel.tsx @@ -11,7 +11,7 @@ import { Callout } from "../../ui/Callout"; import { SidePanel } from "../../ui/SidePanel"; import { BotAvatar } from "../bots/BotAvatar"; import { FilePreview } from "./FilePreview"; -import { fileIcon } from "./kinds"; +import { fileKind, kindIcon } from "./kinds"; import type { BotFiles } from "./useBotFiles"; export function FilesPanel({ @@ -124,7 +124,8 @@ function FileRow({ onOpen(path: string): void; }) { const t = useT().files; - const Icon = fileIcon(file.mediaType, file.name); + const kind = fileKind(file.mediaType, file.name); + const Icon = kindIcon(kind); return (