import{j as i,y as a,ba as l,aS as p}from"./index-CfKY7XrC.js";function y(e,t){const n=t.parentEntityType&&t.parentEntitySlug?[{entity_type:t.parentEntityType,slug:t.parentEntitySlug},{entity_type:t.entityType,slug:t.entitySlug}]:[{entity_type:t.entityType,slug:t.entitySlug}];return p(e,n)}function u({ownerSlug:e,entity:t,tab:n,className:r}){const s=t.entityId!=null&&n==="events"?`/${e}/memory?entity_id=${t.entityId}`:y(e,t);return i.jsxs(a,{to:s,className:`flex items-center gap-1 text-primary hover:underline group ${r??""}`,children:[i.jsx("span",{className:"font-medium",children:t.entityName}),i.jsx(l,{className:"h-3 w-3 opacity-0 group-hover:opacity-100 transition-opacity"})]})}export{u as E};
