'use client' import React from 'react' import { useFoundingWizardForm } from './_hooks/useFoundingWizardForm' import { StepBasics } from './_components/StepBasics' import { StepGesellschafter } from './_components/StepGesellschafter' import { StepCapital, StepGFAssignment, StepGFContracts, StepNotar, StepSHAConfig } from './_components/StepsSimpleConfig' import { StepGenerate } from './_components/StepGenerate' export default function FoundingWizardPage() { const { state, hydrated, generating, error, update, nextStep, prevStep, reset, addGesellschafter, updateGesellschafter, removeGesellschafter, upsertGFContract, canProceed, generateDocuments, gf_list, steps, } = useFoundingWizardForm() if (!hydrated) return null const isLastStep = state.current_step === steps.length return (
{/* Header */}

Gründungs-Wizard

Erstellt alle Notartermin-Dokumente für Deine GmbH/UG-Gründung in 8 Schritten.

{/* Progress Steps */}
{steps.map((step, idx) => ( {idx < steps.length - 1 && (
)} ))}
{/* Step Content */}

{steps[state.current_step - 1]?.name}

{steps[state.current_step - 1]?.description}

{state.current_step === 1 && } {state.current_step === 2 && ( )} {state.current_step === 3 && } {state.current_step === 4 && } {state.current_step === 5 && } {state.current_step === 6 && } {state.current_step === 7 && ( )} {state.current_step === 8 && ( )}
{/* Navigation */} {!isLastStep && (
Schritt {state.current_step} von {steps.length}
)}
) }