@@ -19,25 +19,6 @@ interface Props {
19
19
className ?: string ;
20
20
}
21
21
22
- const extensionsToIcons = new Map ( [
23
- [ 'ts' , 'i-ph-file-ts-duotone' ] ,
24
-
25
- [ 'cjs' , 'i-ph-file-js-duotone' ] ,
26
- [ 'mjs' , 'i-ph-file-js-duotone' ] ,
27
- [ 'js' , 'i-ph-file-js-duotone' ] ,
28
-
29
- [ 'html' , 'i-ph-file-html-duotone' ] ,
30
-
31
- [ 'css' , 'i-ph-file-css-duotone' ] ,
32
-
33
- [ 'md' , 'i-ph-file-md-duotone' ] ,
34
-
35
- [ 'gif' , 'i-ph-file-image-duotone' ] ,
36
- [ 'jpg' , 'i-ph-file-image-duotone' ] ,
37
- [ 'jpeg' , 'i-ph-file-image-duotone' ] ,
38
- [ 'png' , 'i-ph-file-image-duotone' ] ,
39
- ] ) ;
40
-
41
22
export function FileTree ( {
42
23
files,
43
24
onFileSelect,
@@ -390,3 +371,22 @@ function getFileExtension(filename: string) {
390
371
391
372
return extension ;
392
373
}
374
+
375
+ const extensionsToIcons = new Map ( [
376
+ [ 'ts' , 'i-ph-file-ts-duotone' ] ,
377
+
378
+ [ 'cjs' , 'i-ph-file-js-duotone' ] ,
379
+ [ 'mjs' , 'i-ph-file-js-duotone' ] ,
380
+ [ 'js' , 'i-ph-file-js-duotone' ] ,
381
+
382
+ [ 'html' , 'i-ph-file-html-duotone' ] ,
383
+
384
+ [ 'css' , 'i-ph-file-css-duotone' ] ,
385
+
386
+ [ 'md' , 'i-ph-file-md-duotone' ] ,
387
+
388
+ [ 'gif' , 'i-ph-file-image-duotone' ] ,
389
+ [ 'jpg' , 'i-ph-file-image-duotone' ] ,
390
+ [ 'jpeg' , 'i-ph-file-image-duotone' ] ,
391
+ [ 'png' , 'i-ph-file-image-duotone' ] ,
392
+ ] ) ;
0 commit comments