'use client' import React from 'react' import { useRouter } from 'next/navigation' import { useTOMGenerator } from '@/lib/sdk/tom-generator' import { SecurityProfileStep } from '@/components/sdk/tom-generator/steps/SecurityProfileStep' import { TOM_GENERATOR_STEPS } from '@/lib/sdk/tom-generator/types' /** * Step 4: Security Profile * * Collects security measures including: * - Authentication (Password, MFA, SSO) * - IAM/PAM * - Logging & Retention * - Backup & DR * - Vulnerability Management, Pentests, Training */ export default function SecurityPage() { const router = useRouter() const { state, goToNextStep, goToPreviousStep } = useTOMGenerator() const currentStepIndex = TOM_GENERATOR_STEPS.findIndex((s) => s.id === 'security-profile') const prevStep = TOM_GENERATOR_STEPS[currentStepIndex - 1] const nextStep = TOM_GENERATOR_STEPS[currentStepIndex + 1] const handleNext = () => { goToNextStep() if (nextStep) { router.push(nextStep.url) } } const handleBack = () => { goToPreviousStep() if (prevStep) { router.push(prevStep.url) } } return (
{/* Step Header */}
Schritt 4 von 6 | Security-Profil

Sicherheitsmassnahmen

Erfassen Sie Ihre bestehenden Sicherheitsmassnahmen. Diese Informationen helfen bei der Identifikation von Luecken und Verbesserungspotenzialen.

{/* Progress Indicator */}
{TOM_GENERATOR_STEPS.map((step, index) => { const stepState = state.steps.find((s) => s.id === step.id) const isCompleted = stepState?.completed const isCurrent = state.currentStep === step.id return ( {index < TOM_GENERATOR_STEPS.length - 1 && (
)} ) })}
{/* Step Content */}
{/* Navigation */}
) }