(pathOrName)
| 35 | } |
| 36 | |
| 37 | export const getFileExtensionLabel = (pathOrName) => { |
| 38 | const extension = getPreviewFileExtension(pathOrName).replace(/^\./, '') |
| 39 | return extension ? extension.toUpperCase() : '' |
| 40 | } |
| 41 | |
| 42 | export const getMimeSubtypeLabel = (mimeType) => { |
| 43 | const subtype = String(mimeType || '') |
no test coverage detected