import{a as l,c as m,o as d,b as g,d as i,t as u,u as f}from"./app-fEKA3BkQ.js";const b=["href"],x={__name:"DocumentMessage",props:["message"],setup(e){var a,t;const o=((a=e.message.meta)==null?void 0:a.media_url)??((t=e.message.body)==null?void 0:t.link)??!1;return(r,p)=>{var s,n;const c=l("Icon");return d(),m("a",{target:"_blank",href:f(o),class:"flex items-center gap-2 rounded border bg-slate-200 px-3 py-2 text-gray-900 dark:border-slate-700 dark:bg-slate-800 dark:text-gray-100"},[g(c,{icon:"bx:file"}),i("p",null,u(((s=e.message.meta)==null?void 0:s.filename)||((n=e.message.body)==null?void 0:n.caption)||r.trans("Document")),1)],8,b)}}};export{x as default};
