"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var get_icon_exports = {};
__export(get_icon_exports, {
  getIcon: () => getIcon
});
module.exports = __toCommonJS(get_icon_exports);
var import_file_extension_to_type = require("../lib/file-extension-to-type.js");
var import_audio_video_icon = require("./audio-video-icon.js");
var import_doc_icon = require("./doc-icon.js");
var import_folder_icon = require("./folder-icon.js");
var import_image_icon = require("./image-icon.js");
var import_other_icon = require("./other-icon.js");
var import_pdf_icon = require("./pdf-icon.js");
var import_ppt_icon = require("./ppt-icon.js");
var import_xls_icon = require("./xls-icon.js");
const iconMap = {
  [import_file_extension_to_type.FileTypes.IMAGE]: import_image_icon.ImageIcon,
  [import_file_extension_to_type.FileTypes.VIDEO]: import_audio_video_icon.AudioVideoIcon,
  [import_file_extension_to_type.FileTypes.AUDIO]: import_audio_video_icon.AudioVideoIcon,
  [import_file_extension_to_type.FileTypes.PDF]: import_pdf_icon.PdfIcon,
  [import_file_extension_to_type.FileTypes.ARCHIVE]: import_folder_icon.FolderIcon,
  [import_file_extension_to_type.FileTypes.WORD]: import_doc_icon.DocIcon,
  [import_file_extension_to_type.FileTypes.EXCEL]: import_xls_icon.XlsIcon,
  [import_file_extension_to_type.FileTypes.POWERPOINT]: import_ppt_icon.PptIcon,
  [import_file_extension_to_type.FileTypes.MISC]: import_other_icon.OtherIcon
};
const getIcon = (extension) => {
  return iconMap[(0, import_file_extension_to_type.fileExtensionToType)(extension)] ?? import_other_icon.OtherIcon;
};
//# sourceMappingURL=get-icon.js.map
