(file)
| 123 | } |
| 124 | |
| 125 | const getFileTypeName = (file) => { |
| 126 | const ext = file.name?.split('.').pop()?.toLowerCase() |
| 127 | if (ext === 'pdf') return 'PDF Document' |
| 128 | if (ext === 'md' || ext === 'markdown') return 'Markdown' |
| 129 | if (ext === 'doc') return 'Word Document' |
| 130 | if (ext === 'docx') return 'Word Document' |
| 131 | if (ext === 'ppt' || ext === 'pptx') return 'PowerPoint' |
| 132 | return file.type || 'Document' |
| 133 | } |
| 134 | |
| 135 | // Generate display name for generated output |
| 136 | const getOutputDisplayName = (output) => { |