import{j as e,ej as c,u as h,v as x,L as l,D as m,eh as u,a as g,c as j}from"./index-_eM6l4Nf.js";import{S as p}from"./SchematisedTagTable-BUnYakOD.js";import{S as v}from"./SchematisedTagsEdit-D034QUDk.js";const I=({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: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(v,{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(p,{tag:n},n.name))}):e.jsx(j,{gray:!0,children:"No tag schemas attached"});export{I as F,w as T,f as a};
