"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const e=require("react/jsx-runtime"),n=require("../icon/index.cjs"),d="_file_1ik2m_1",r={file:d,delete:"_delete_1ik2m_52"},m=({deleteAccessibleLabel:o,name:s,onClick:t,onDelete:i,ref:c,url:a})=>e.jsxs("div",{className:r.file,ref:c,"data-component":"file",children:[e.jsxs("a",{href:a,onClick:l=>{l.stopPropagation(),(t||!a)&&(l.preventDefault(),t==null||t())},title:s,children:[e.jsx(n.Icon,{name:"document",size:"small",variant:"primary"}),s]}),i&&e.jsx("a",{"aria-label":o??`Delete ${s}`,className:r.delete,onClick:()=>i(),tabIndex:0,children:e.jsx(n.Icon,{name:"trash",size:"small",variant:"danger"})})]});exports.File=m;
//# sourceMappingURL=index.cjs.map
