import e,{useMemo as t}from"react";import o from"classnames";import{StepsCommand as n}from"./StepsCommand.js";import{StepsGalleryHeader as r}from"./StepsGalleryHeader.js";import{StepsNumbersHeader as s}from"./StepsNumbersHeader.js";import{FINISH_TEXT as a}from"./StepsConstants.js";import{Button as i}from"@vibe/button/mockedClassNames";import c from"./StepsHeader.module.scss.js";var m=function(m){var p=m.activeStepIndex,l=m.onChangeActiveStep,d=m.stepsCount,u=m.areNavigationButtonsHidden,v=m.backButtonProps,S=m.nextButtonProps,f=m.finishButtonProps,C=m.areButtonsIconsHidden,g=m.color,h=void 0===g?"primary":g,x=m.onFinish,b=m.className,H="gallery"===m.type?r:s,I=t((function(){if(x)return p===d-1}),[p,x,d]);return e.createElement("div",{className:o(c.header,b)},u?null:e.createElement(n,{isNext:!1,isIconHidden:C,onChangeActiveStep:l,activeStepIndex:p,stepsCount:d,buttonProps:v,color:h}),e.createElement(H,{activeStepIndex:p,stepsCount:d,onChangeActiveStep:l,color:h}),u?null:e.createElement(e.Fragment,null,I?e.createElement(i,Object.assign({onClick:x,color:h},f),(null==f?void 0:f.children)||a):e.createElement(n,{isNext:!0,isIconHidden:C,activeStepIndex:p,onChangeActiveStep:l,stepsCount:d,buttonProps:S,color:h})))};export{m as StepsHeader};
//# sourceMappingURL=StepsHeader.js.map
