'use client' import React from 'react' import { useCompanyProfileForm } from './_hooks/useCompanyProfileForm' import { STEP_EXPLANATIONS } from './_components/constants' import { StepBasicInfo } from './_components/StepBasicInfo' import { StepBusinessModel } from './_components/StepBusinessModel' import { StepCompanySize } from './_components/StepCompanySize' import { StepLocations } from './_components/StepLocations' import { StepDataProtection } from './_components/StepDataProtection' import { StepLegalFramework } from './_components/StepLegalFramework' import { StepMachineBuilder } from './_components/StepMachineBuilder' import { ProfileSummary } from './_components/ProfileSummary' export default function CompanyProfilePage() { const { formData, updateFormData, currentStep, setCurrentStep, wizardSteps, showMachineBuilderStep, isLastStep, draftSaveStatus, canProceed, handleNext, handleBack, handleDeleteProfile, showDeleteConfirm, setShowDeleteConfirm, isDeleting, goToNextStep, } = useCompanyProfileForm() // Summary view (step 99) if (currentStep === 99) { return ( setCurrentStep(1)} onContinue={() => goToNextStep()} /> ) } // Wizard view (steps 1-7) return (
{/* Header */}

Unternehmensprofil

Helfen Sie uns, Ihr Unternehmen zu verstehen, damit wir die relevanten Regulierungen identifizieren können.

{/* Progress Steps */}
{wizardSteps.map((step, index) => (
{step.id < currentStep ? ( ) : step.id}
{step.name}
{index < wizardSteps.length - 1 && (
)} ))}
{/* Content */}

{(wizardSteps.find(s => s.id === currentStep) || wizardSteps[0]).name}

{(wizardSteps.find(s => s.id === currentStep) || wizardSteps[0]).description}

{STEP_EXPLANATIONS[currentStep] && (

{STEP_EXPLANATIONS[currentStep]}

)}
{currentStep === 1 && } {currentStep === 2 && } {currentStep === 3 && } {currentStep === 4 && } {currentStep === 5 && } {currentStep === 6 && } {currentStep === 7 && showMachineBuilderStep && } {/* Navigation */}
{draftSaveStatus !== 'idle' && ( {draftSaveStatus === 'saving' && 'Speichern...'} {draftSaveStatus === 'saved' && '\u2713 Gespeichert'} {draftSaveStatus === 'error' && 'Speichern fehlgeschlagen'} )}
{/* Delete Confirmation Modal */} {showDeleteConfirm && (

Profil löschen?

Alle gespeicherten Unternehmensdaten werden unwiderruflich gelöscht (DSGVO Art. 17). Diese Aktion kann nicht rückgängig gemacht werden.

)}
) }