import{j as e,d$ as c,u as x,e0 as h,O as l,a_ as u,dF as g,a as m,e1 as p,c as j}from"./index-d6499a22.js";import{S as T}from"./SchematisedTags-747f8809.js";const y=({features:a,isFetching:i})=>e.jsx(c,{variant:"gray",text:"features",value:(a==null?void 0:a.length)??"0",loading:i}),F=({fvName:a,fvVersion:i,parentProjectId:s,featurestoreId:t})=>{const{id:r,fsId:n}=x(),{currentData:d,isFetching:o}=h({id:a,version:+i,pId:+r||s,fsId:+n||t});return e.jsx(c,{variant:"gray",text:"training data",value:(d==null?void 0:d.count)??"0",loading:o})},w=({tags:a,isFetching:i,mode:s="view",setMode:t,tdVersion:r})=>i?e.jsx(l,{width:"100%",height:"55px",sx:{position:"relative"},children:e.jsx(u,{})}):s==="add"?e.jsx(T,{type:g.td,tags:a??[],onDone:()=>t==null?void 0:t("view"),tdVersion:r}):a!=null&&a.length?e.jsx(m,{width:"100%",flexDirection:"column",children:a.map(n=>e.jsx(p,{tag:n},n.name))}):e.jsx(j,{gray:!0,children:"No tag schemas attached"});export{y as F,w as T,F as a};
