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