import{j as e,e3 as d,u as x,e4 as h,o as l,a$ as u,dJ as g,Q as m,e5 as p,x as j}from"./index-ea7817a2.js";import{S as T}from"./SchematisedTags-a748e3d3.js";const y=({features:a,isFetching:i})=>e.jsx(d,{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:o,isFetching:c}=h({id:a,version:+i,pId:+r||s,fsId:+n||t});return e.jsx(d,{variant:"gray",text:"training data",value:(o==null?void 0:o.count)??"0",loading:c})},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};
