import{j as n}from"./index-6605a014.js";import{r as i}from"./react-e45097e1.js";import{D as d,z as u}from"./Author-826c76c5.js";import{o as f,a5 as h}from"./antd-6dbc138d.js";const c=()=>{const{getData:o}=d(),{modelCategory:l,modelKey:p,attachmentKey:t}=u(),r=i.useMemo(()=>{var m;const e=o("attachmentUrl"),a=o("model");return(m=a==null?void 0:a[t])==null?void 0:m.map(s=>({...s,url:`${e}/${l}/${a.id}/${t}/${s.fileName}`}))},[p,t]);return n.jsx(f,{direction:"vertical",size:0,children:r==null?void 0:r.map(e=>n.jsx(h.Link,{download:e.name,href:e.url,children:e.name},e.fileName))})};c.params={modelCategory:{name:"模型组KEY"},attachmentKey:{name:"附件KEY"}};c.title="内容附件";export{c as default};
