import{j as e,eg as c,u as x,t as h,L as l,D as m,ee as g,$ as u,c as p}from"./index-46ma1THH.js";import{S as j}from"./SchematisedTagTable-DgZocj7H.js";import{S as T}from"./SchematisedTagsEdit-Yw_kmyod.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}=x(),{currentData:o,isFetching:d}=h({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:g.td,tags:a??[],onDone:()=>t==null?void 0:t("view"),tdVersion:s}):a!=null&&a.length?e.jsx(u,{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};
