import{fs as p}from"./index-60a3c753.js";import{e as i}from"./285688_file_empty_icon-ca4d328f.js";const g=(n,o)=>{var t;const e=(t=(n.name||n.path||"").split(".").pop())==null?void 0:t.toLowerCase();return e&&["jpg","jpeg","png","gif","bmp","svg","webp"].includes(e)&&n.preview?n.preview:e&&o&&o[e]?`${p.baseUrl}/static/iconpacks/default/${o[e]}`:i};export{g};
