'use client'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { motion } from 'framer-motion'; interface OnboardingStepperProps { currentStep: number; totalSteps: number; steps: string[]; } /** * OnboardingStepper * * A progress indicator with a "pit limiter" vibe. * Uses a progress line and step labels. */ export function OnboardingStepper({ currentStep, totalSteps, steps }: OnboardingStepperProps) { const progress = (currentStep / totalSteps) * 100; return ( {steps.map((label, index) => { const stepNumber = index + 1; const isActive = stepNumber === currentStep; const isCompleted = stepNumber < currentStep; return ( {stepNumber} {label} ); })} ); }