| Current Path : /snap/lxd/current/share/lxd-ui/assets/ |
| Current File : //snap/lxd/current/share/lxd-ui/assets/TabLinks-N89T_JJh.js |
import{d as r,c as u,j as p,a6 as l}from"./index-BsQN_SZU.js";const g=({tabs:e,activeTab:t,tabUrl:i})=>{const a=r.useNotify(),c=u();return p.jsx(r.Tabs,{links:e.map(s=>{if(typeof s!="string")return s;const n=l(s),o=s===e[0]?i:`${i}/${n}`;return{label:s,id:n,active:n===t||s===e[0]&&!t,onClick:f=>{f.preventDefault(),a.clear(),c(o)},href:o}})})};export{g as T};