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