Your IP : 216.73.216.52


Current Path : /snap/lxd/38450/share/lxd-ui/assets/
Upload File :
Current File : //snap/lxd/38450/share/lxd-ui/assets/CreateInstanceFromImageBtn-qtdjIDOh.js

import{c as i,ay as p,j as n,d as s,R as m}from"./index-BsQN_SZU.js";import{u}from"./projects-CczQ3aFg.js";const j=({image:o,projectName:e})=>{const c=i(),{canCreateInstances:t}=u(),{data:a}=p(e),r=()=>{c(`${m}/ui/project/${encodeURIComponent(e)}/instances/create`,{state:{selectedImage:o,cancelLocation:window.location.pathname}})};return n.jsx(s.Button,{appearance:"base",onClick:r,type:"button",title:t(a)?"Create instance":"You do not have permission to create instances",hasIcon:!0,disabled:!t(a),children:n.jsx(s.Icon,{name:"play"})})};export{j as C};