Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

743 B
Raw Blame
import { Stepper } from '../../../components/ui';
import { useT } from '../../../lib/i18n/I18nContext';

interface WizardStepperProps {
  /** Ordered labels for each step in the wizard. */
  labels: string[];
  /** Zero-based index of the step that is currently active. */
  activeIndex: number;
}

/**
 * Thin wrapper over the shared `Stepper` primitive that supplies the
 * onboarding copy and the E2E test id.
 */
const WizardStepper = ({ labels, activeIndex }: WizardStepperProps) => {
  const { t } = useT();
  return (
    <Stepper
      labels={labels}
      activeIndex={activeIndex}
      ariaLabel={t('onboarding.custom.progressAriaLabel')}
      data-testid="onboarding-wizard-stepper"
    />
  );
};

export default WizardStepper;