+
+
+
+
+
+
{title}} subtitle={subtitle} />
+
+
+ {subtype && (
+
+
+ {isValidElement(bannerComponent) &&
+ cloneElement(bannerComponent, {
+ className: styles.banner,
+ onChange: setSubtype,
+ onToggle: () => {
+ setActiveStepIndex(0);
+ },
+ })}
+ {steps.map((step, index) => {
+ const isFinalStep = index === steps.length - 1;
+
+ return (
+ {
+ // eslint-disable-next-line @silverhand/fp/no-mutation
+ stepReferences.current[index] = element;
+ }}
+ data={step}
+ index={index}
+ isCompleted={activeStepIndex > index}
+ isExpanded={activeStepIndex === index}
+ isFinalStep={isFinalStep}
+ onComplete={onComplete}
+ onNext={() => {
+ setActiveStepIndex(index + 1);
+ }}
+ onToggle={() => {
+ setActiveStepIndex(index);
+ onToggleSteps?.();
+ }}
+ />
+ );
+ })}
+
+
+ );
};
export default GetStarted;