'use client' import React from 'react' import { useRouter } from 'next/navigation' import { useTOMGenerator } from '@/lib/sdk/tom-generator' import { DataCategoriesStep } from '@/components/sdk/tom-generator/steps/DataCategoriesStep' import { TOM_GENERATOR_STEPS } from '@/lib/sdk/tom-generator/types' /** * Step 2: Data Categories * * Collects data processing information including: * - Data categories (with warnings for special categories) * - Data subjects (with warnings for minors) * - Data volume * - Third country transfers */ export default function DataPage() { const router = useRouter() const { state, goToNextStep, goToPreviousStep } = useTOMGenerator() const currentStepIndex = TOM_GENERATOR_STEPS.findIndex((s) => s.id === 'data-categories') 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 2 von 6 | Datenkategorien

Datenkategorien & Betroffene

Welche Arten von personenbezogenen Daten verarbeiten Sie? Die Sensitivitaet der Daten bestimmt die erforderlichen Schutzmassnahmen.

{/* 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 */}
) }