@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
9 lines (8 loc) • 1.53 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-svg-icons");function n(c){if(!c)return{name:"file",icon:e.fileIcon};switch(c){case".png":case".jpg":case".jpeg":case".tiff":case".bmp":case".gif":return{name:"file-image",icon:e.fileImageIcon};case".mp3":case".mp4":case".wav":return{name:"file-audio",icon:e.fileAudioIcon};case".mkv":case".webm":case".flv":case".gifv":case".avi":case".wmv":return{name:"file-video",icon:e.fileVideoIcon};case".txt":return{name:"file-txt",icon:e.fileTxtIcon};case".pdf":return{name:"file-pdf",icon:e.filePdfIcon};case".ppt":case".pptx":return{name:"file-presentation",icon:e.filePresentationIcon};case".csv":case".xls":case".xlsx":return{name:"file-data",icon:e.fileDataIcon};case".html":case".css":case".js":case".ts":return{name:"file-programming",icon:e.fileProgrammingIcon};case".exe":return{name:"file-config",icon:e.fileConfigIcon};case".zip":case".rar":return{name:"file-zip",icon:e.fileZipIcon};case".doc":case".docm":case".docx":return{name:"file-zip",icon:e.fileWordIcon};default:return{name:"file",icon:e.fileIcon}}}exports.getFileExtensionIcon=n;