import{a4 as n,cY as u,F as m,a2 as d,j as s,eV as i,eW as j}from"./index-Dz5JRQhj.js";import{U as x}from"./UsedByItem-DL7zobGp.js";import{E as p}from"./ExpandableList-C5toH4xB.js";const N=({entityType:e,usedBy:a})=>{if(!a)return null;const{project:o}=n(),t=u(e,a),c=e==="volume"?"Custom volume":m(e.replaceAll("-"," ")),l=d(c,t.length);return s.jsxs("tr",{className:"used-by-row",children:[s.jsxs("th",{className:"u-text--muted used-by-row-header",children:[s.jsx(i,{type:e,className:"icon"}),l," (",t.length,")"]}),s.jsx("td",{children:s.jsx(p,{items:t.map(r=>s.jsx(x,{item:r,activeProject:o?.name||"default",type:e,to:j(r,e)},`${r.name}-${r.project}-${r.target??""}`))})})]})};export{N as U};
