Your IP : 216.73.216.52


Current Path : /snap/lxd/current/share/lxd-ui/assets/
Upload File :
Current File : //snap/lxd/current/share/lxd-ui/assets/UsedByItem-DYTdOZkC.js

import{K as l,j as n,w as s,R as m,dD as u,Z as d}from"./index-BsQN_SZU.js";import{w as x}from"./SshKeyForm-BNz7yPwa.js";import{P as h}from"./ProjectRichChip-DZzjTfq6.js";const v=({item:e,activeProject:a,type:o,to:r,projectLinkDetailPage:c="instances"})=>{const t=o==="image",{data:p=[]}=l(e.project||a,t),i=p.find(j=>j.fingerprint===e.name)?.properties?.description||e.name;return n.jsxs("div",{children:[e.project!==a&&n.jsxs(n.Fragment,{children:[n.jsx(h,{projectName:e.project,urlSuffix:`/${encodeURIComponent(c)}`})," ","/"," "]}),o==="snapshot"&&e.instance&&n.jsxs(n.Fragment,{children:[n.jsx(s,{type:"instance",value:e.instance,to:`${m}/ui/project/${encodeURIComponent(e.project)}/instance/${encodeURIComponent(e.instance)}`})," ","/"," "]}),o==="snapshot"&&e.volume&&n.jsxs(n.Fragment,{children:[n.jsx(s,{type:"volume",value:e.volume,to:u({name:e.volume,project:e.project,pool:e.pool,type:"custom",location:e.target??""})})," ","/"," "]}),o==="instance"&&n.jsx(d,{instanceName:e.name,projectName:e.project}),o==="profile"&&n.jsx(x,{profileName:e.name,projectName:e.project}),o!=="instance"&&o!=="profile"&&n.jsx(s,{type:o,value:i,to:r})]})};export{v as U};