import { Stack, Stepper } from '@mantine/core'; import { useState } from 'react'; import { StepCreateAccount } from './step-create-account'; import { StepDockerImport } from './step-docker-import'; import { StepDocumentation } from './step-documentation'; import { StepOnboardingFinished } from './step-onboarding-finished'; import { StepUpdatePathMappings } from './step-update-path-mappings'; export const OnboardingSteps = ({ isUpdate }: { isUpdate: boolean }) => { const [currentStep, setCurrentStep] = useState(0); const nextStep = () => setCurrentStep((current) => (current < 4 ? current + 1 : current)); const prevStep = () => setCurrentStep((current) => (current > 0 ? current - 1 : current)); return ( {isUpdate && ( )} ); };