import{j as e,dZ as o,u as x,v as h,d as l,L as m,dX as u,B as g,c as p}from"./index-C1DmWO_C.js";import{S as j}from"./SchematisedTagTable-v59rHKRx.js";import{S as v}from"./SchematisedTagsEdit-5zU0QcNA.js";const I=({features:a,isFetching:i})=>e.jsx(o,{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}=x(),{currentData:d,isFetching:c}=h({id:a,version:+i,pId:+s||r,fsId:+n||t});return e.jsx(o,{variant:"gray",text:"training data",value:(d==null?void 0:d.count)??"0",loading:c})},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(j,{tag:n},n.name))}):e.jsx(p,{gray:!0,children:"No tag schemas attached"});export{I as F,w as T,f as a};
