function u(n){return n.id===null?null:n.type==="admin"?`/settings/team/${n.id}`:n.type==="user"?`/content/user/${n.id}`:n.type==="api_token"?"/settings/access":null}function l(n){if(!n)return null;const{entityType:s,entityId:t,displayName:r}=n,e=s.startsWith("content:")?s.slice(8):s;if(e==="media")return"/media";if(e==="schema"){const i=t??r;return i?`/schemas/${encodeURIComponent(String(i))}`:"/schemas"}return e==="admin_user"?t!==null?`/settings/team/${t}`:"/settings/team":e==="user"?t!==null?`/content/user/${t}`:"/content/user":e==="setting"||e==="settings"?"/settings":e==="api_token"||e==="service_account"?"/settings/access":e==="sso_provider"?t!==null?`/settings/sso/${t}`:"/settings/sso":t===null?null:`/content/${e}/${t}`}export{l as a,u as g};
