'use client' import React from 'react' import { useRouter } from 'next/navigation' import { useTOMGenerator } from '@/lib/sdk/tom-generator' import { ScopeRolesStep } from '@/components/sdk/tom-generator/steps/ScopeRolesStep' import { TOM_GENERATOR_STEPS } from '@/lib/sdk/tom-generator/types' /** * Step 1: Scope & Roles * * Collects company profile information including: * - Company name, industry, size * - GDPR role (Controller/Processor/Joint Controller) * - Products/Services * - DPO and IT Security contacts */ export default function ScopePage() { const router = useRouter() const { state, goToNextStep } = useTOMGenerator() const currentStepIndex = TOM_GENERATOR_STEPS.findIndex((s) => s.id === 'scope-roles') const nextStep = TOM_GENERATOR_STEPS[currentStepIndex + 1] // Handle step completion const handleStepComplete = () => { goToNextStep() if (nextStep) { router.push(nextStep.url) } } return (
{/* Step Header */}
Schritt 1 von 6 | Scope & Rollen

Unternehmens- und Rollendefinition

Definieren Sie Ihr Unternehmen und Ihre Rolle in der Datenverarbeitung. Diese Informationen bestimmen, welche TOMs fuer Sie relevant sind.

{/* 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 && (
)} ) })}
{/* Scope Prefill Hint */}

Tipp: Wenn Sie bereits die Scope-Analyse ausgefuellt haben, werden relevante Felder (Branche, Groesse, Hosting, Verschluesselung) automatisch vorausgefuellt. Anpassungen sind jederzeit moeglich.

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