import{j as e,e2 as c,u as m,v as x,e as h,L as l,e0 as u,B as g,b as p}from"./index-dP1W1_bd.js";import{S as j}from"./SchematisedTagTable-D9koY5Q-.js";import{S as v}from"./SchematisedTagsEdit-Caewn4Mk.js";const f=({features:a,isFetching:i})=>e.jsx(c,{variant:"gray",text:"features",value:(a==null?void 0:a.length)??"0",loading:i}),w=({fvName:a,fvVersion:i,parentProjectId:r,featurestoreId:t})=>{const{id:s,fsId:n}=m(),{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})},F=({tags:a,isFetching:i,mode:r="view",setMode:t,tdVersion:s})=>i?e.jsx(h,{width:"100%",height:"55px",sx:{position:"relative"},children:e.jsx(l,{})}):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{f as F,F as T,w as a};
