MCPcopy Create free account
hub / github.com/HKUDS/Paper2Slides / getFileTypeName

Function getFileTypeName

frontend/src/components/ChatWindow.jsx:125–133  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

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) => {

Callers 1

ChatWindowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected