(filePath: string)
| 85 | }; |
| 86 | |
| 87 | function getExtension(filePath: string): string { |
| 88 | const parts = filePath.split("."); |
| 89 | if (parts.length < 2) return ""; |
| 90 | return parts[parts.length - 1].toLowerCase(); |
| 91 | } |
| 92 | |
| 93 | export function getFileIcon(filePath: string): LucideIcon { |
| 94 | const ext = getExtension(filePath); |