'use client' import React from 'react' import { useRouter } from 'next/navigation' import { useTOMGenerator } from '@/lib/sdk/tom-generator' import { RiskProtectionStep } from '@/components/sdk/tom-generator/steps/RiskProtectionStep' import { TOM_GENERATOR_STEPS } from '@/lib/sdk/tom-generator/types' /** * Step 5: Risk & Protection Level * * Assesses risk and protection requirements including: * - CIA Assessment (Confidentiality/Integrity/Availability, 1-5 each) * - Calculated protection level * - Special risks * - Regulatory requirements * - DSFA indicator (automatic) */ export default function RiskPage() { const router = useRouter() const { state, goToNextStep, goToPreviousStep } = useTOMGenerator() const currentStepIndex = TOM_GENERATOR_STEPS.findIndex((s) => s.id === 'risk-protection') 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 5 von 6 | Risiko & Schutzbedarf

Risikobewertung & Schutzbedarf

Bewerten Sie die Schutzziele (CIA) fuer Ihre Datenverarbeitung. Der ermittelte Schutzbedarf bestimmt die Intensitaet der erforderlichen Massnahmen.

{/* 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 && (
)} ) })}
{/* CIA Info Box */}
CIA-Triade

Vertraulichkeit: Schutz vor unbefugtem Zugriff | Integritaet: Schutz vor unbefugter Aenderung | Verfuegbarkeit: Sicherstellung des Zugriffs

{/* Step Content */}
{/* Navigation */}
) }