import{j as e}from"./vendor-react-wBh_31cN.js";import{B as i}from"./badge-nyizWwTN.js";import{T as l}from"./tooltip-Da8-EbK8.js";import{V as p}from"./value-76ihWpF6.js";import{M as m}from"./metadata-field-B_vcklh-.js";import{Z as u}from"./index-BKr2rJhV.js";const s=r=>{const{type:a,timeTravelFormat:t,spine:o}=r;if(o)return{tableFormat:"Spine",tooltipText:"Spine feature group - provides primary keys for joins"};if(a===u.ON_DEMAND)return{tableFormat:"External",tooltipText:"External data source - no physical storage"};const n=t==null?void 0:t.toLowerCase();return n==="delta"?{tableFormat:"Delta",tooltipText:"Delta Lake table format"}:n==="hudi"?{tableFormat:"Hudi",tooltipText:"Apache Hudi table format"}:{tableFormat:null,tooltipText:null}},h=({featureGroup:r,className:a})=>{const{tableFormat:t,tooltipText:o}=s(r);return e.jsxs("div",{className:a??"mr-2.5 flex gap-1",children:[t&&e.jsx(l,{content:o,children:e.jsx(i,{variant:"outline",className:"border-quartz-label-blue text-quartz-label-blue bg-transparent font-normal",children:t})}),r.onlineEnabled&&e.jsx(l,{content:"Online feature store enabled",children:e.jsx(i,{variant:"outline",className:"border-quartz-label-green text-quartz-label-green bg-transparent font-normal",children:"Online"})})]})},j=({featureGroup:r,className:a})=>{const{tableFormat:t,tooltipText:o}=s(r);return t?e.jsx(m,{label:"Table format",className:a,children:e.jsx(l,{content:o,children:e.jsx(p,{className:"cursor-help",children:t})})}):null};export{h as F,j as T};
