import{CATALOG_BASE_SLUG as s,CATALOG_SLUGS as l}from"../../../constants/catalog-entities.js";function c(e){const n=new URLSearchParams(e).get("revision"),t=new URLSearchParams(e).get("version");return n||t?`?${n?`revision=${encodeURIComponent(n)}`:""}${t?`&version=${encodeURIComponent(t)}`:""}`.trim():""}function m(e,n,t=l.ALL,a){const r=`${s}/${t}/entities/${n}`,o=c(a),i=[{type:"link",label:"Overview",link:`${r}${o}`},{type:"link",label:"Relations Graph",link:`${r}/relations-graph${o}`}];return!e||e.length===0?i:[...i,{type:"separator",separatorLine:!0},{type:"group",items:e,label:"Documentation"}]}export{m as injectCatalogItems};
