import{r as o,u as r,e7 as v,hA as h,ax as j,j as i,x as l,Q as t,aU as y,c as b,b as c,be as a}from"./index-ea7817a2.js";import{F as g}from"./FeatureGroupTypeBadge-0e65ce60.js";import{D as I}from"./Deprecated-9bfe2e44.js";const p=({featureGroup:s,name:d})=>{const{id:x}=r(),{currentData:m}=v({fsId:s==null?void 0:s.featurestoreId}),{currentData:n}=h({pId:+x,fsId:(s==null?void 0:s.featurestoreId)??-1,id:(s==null?void 0:s.id)??-1,fgName:(s==null?void 0:s.name)??""},{skip:!s||!m}),e=n==null?void 0:n.features.find(j("name",d));return s?i.jsxs(t,{justifyContent:"space-between",children:[i.jsxs(t,{children:[n&&n.deprecated&&i.jsx(I,{sx:{fontSize:"12px"},short:!0}),i.jsx(y,{my:"-8px",px:"10px",intent:"inline",href:b(c.featureGroup.overview,c.project.value,{id:x,fsId:s.featurestoreId,fgId:s==null?void 0:s.id}),target:"_blank",children:i.jsxs(t,{alignItems:"center",sx:{gap:"5px"},children:[n&&i.jsx(g,{type:n.type,onlineEnabled:n.onlineEnabled,size:"xs"}),s.name," ↗"]})}),i.jsxs(l,{ml:"3px",color:"labels.orange",children:["v",s.version]})]}),i.jsxs(t,{ml:"12px",sx:{gap:"10px"},children:[i.jsx(a,{value:"primary key",width:"max-content",variant:"success",sx:{visibility:e!=null&&e.primary?"auto":"hidden"}}),i.jsx(a,{value:"event time",width:"max-content",variant:"label",sx:{visibility:(n==null?void 0:n.eventTime)===d?"auto":"hidden"}}),i.jsx(a,{value:"partition key",width:"max-content",variant:"success",sx:{visibility:e!=null&&e.partition?"auto":"hidden"}})]})]}):i.jsx(l,{bold:!0,gray:!0,children:"unavailable origin feature group"})},k=o.memo(p);export{k as T};
