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

Function getFileIcon

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

Source from the content-addressed store, hash-verified

115 }
116
117 const getFileIcon = (file) => {
118 const ext = file.name?.split('.').pop()?.toLowerCase()
119 if (ext === 'pdf') return '📄'
120 if (ext === 'md' || ext === 'markdown') return '📝'
121 if (['doc', 'docx'].includes(ext)) return '📃'
122 return '📎'
123 }
124
125 const getFileTypeName = (file) => {
126 const ext = file.name?.split('.').pop()?.toLowerCase()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected