import t from"../../node_modules/classnames/index.js";import e from"react";import"../../node_modules/reactstrap/esm/index.js";import a from"../Box/Box.js";import o from"./Tab.js";import{useTabs as m}from"./TabsHooks.js";import{__exports as i}from"../../_virtual/index.js";var n;!function(t){t.Bottom="Bottom",t.Left="Left",t.Right="Right"}(n||(n={}));const l=({initialTab:l,onClickCallback:r,placement:s=n.Left,renderTab:c,rightComponent:d,tabs:b,tabsAnalyticsName:f,tall:g})=>{const{activeTab:p,onClickTab:u}=m(b,{initialTab:l,onClickCallback:r,tabsAnalyticsName:f});return e.createElement("div",{className:"d-flex flex-column flex-fill h-100"},s===n.Bottom&&c(p),e.createElement(i.Nav,{className:t("align-items-center",{"mb-4":s!==n.Bottom,"ps-3 nav-tabs-bottom":s===n.Bottom}),tabs:!0},s===n.Right&&e.createElement(a,{marginRight:"auto"},d),b.map((t=>e.createElement(a,{key:`NavItem-${t.name}`,marginLeft:s===n.Right?4:0,marginRight:s!==n.Right?4:0},e.createElement(o,{active:p===t.name,badge:t.badge,count:t.count,disabled:t.disabled,icon:t.icon,name:t.name,onClick:()=>u(t.name),paddingBottom:g?2:void 0})))),s===n.Left&&e.createElement(a,{marginLeft:"auto",paddingBottom:g?2:void 0},d)),s!==n.Bottom&&c(p))};export{n as TabPlacement,l as default};
//# sourceMappingURL=Tabs.js.map
