"use strict";var e=require("prop-types"),i=require("image-extensions"),a=require("../utils/fileExtension.js"),s=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=d(e),c={image:d(i).default,doc:["doc","docx"],xls:["xls","xlsx"],pdf:["pdf"],archive:["zip","rar","7z","tar"]},l={fileTypeWrapper:{display:"inline-block",verticalAlign:"top"}},r=function(e){var i,d=e.fileName,t=e.size,r=e.className,f=a.getFileExtension(d);return i=c.image.includes(f)?"/static/media/ce0806d7fe0a5fdedde889e58929cd3a.svg":c.doc.includes(f)?"/static/media/ffd922ae8116b456a7f24dcf118f36b4.svg":c.xls.includes(f)?"/static/media/b88b9008a93dabe2d431b22e76e3017a.svg":c.pdf.includes(f)?"/static/media/af268ec48d747e3147d5acb95bc1b599.svg":c.archive.includes(f)?"/static/media/e26a8e73ce2b62ee8bd6b8eddf286b49.svg":"/static/media/0ea849622ec24faa453981edfd1862e6.svg",s.jsx("div",{style:l.fileTypeWrapper,className:r,children:s.jsx("img",{src:i,alt:"File icon",style:{display:"block",height:t,width:t}})})};r.propTypes={fileName:t.default.string.isRequired,size:t.default.number,className:t.default.string},r.defaultProps={size:50,className:void 0},module.exports=r;
