import{j as e,eg as c,u as x,z as g,F as l,L as h,ee as m,q as u,c as p}from"./index-DNBEEyYo.js";import{S as j}from"./SchematisedTagTable-DSTbTvGB.js";import{T}from"./TagsEdit-CSH7oiHX.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:r,featurestoreId:n})=>{const{id:s,fsId:t}=x(),{currentData:o,isFetching:d}=g({id:a,version:+i,pId:+s||r,fsId:+t||n});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:n,tdVersion:s})=>i?e.jsx(l,{width:"100%",height:"55px",sx:{position:"relative"},children:e.jsx(h,{})}):r==="add"?e.jsx(T,{type:m.td,tags:a??[],onDone:()=>n==null?void 0:n("view"),tdVersion:s}):a!=null&&a.length?e.jsx(u,{width:"100%",flexDirection:"column",children:a.map(t=>e.jsx(j,{tag:t},t.name))}):e.jsx(p,{gray:!0,children:"No tag schemas attached"});export{y as F,w as T,f as a};
