minor export adjustments

This commit is contained in:
spencerwooo
2022-01-26 15:40:21 +08:00
parent 8201cb2701
commit ab484dbf01
3 changed files with 11 additions and 5 deletions
+2
View File
@@ -98,6 +98,8 @@ export function getFileIcon(fileName: string, flags?: { video?: boolean }): [Ico
const extension = getExtension(fileName)
let icon = hasKey(extensions, extension) ? extensions[extension] : icons.file
// Files with '.ts' extensions may be TypeScript files or TS Video files, we check for the flag 'video'
// to determine which icon to render for '.ts' files.
if (extension === 'ts') {
if (flags?.video) {
icon = icons.video