'use client' import { useRouter } from 'next/navigation' import { UploadZone } from './_components/UploadZone' import { FileItem } from './_components/FileItem' import { GapAnalysisPreview } from './_components/GapAnalysisPreview' import { ImportHistory } from './_components/ImportHistory' import { useImport } from './_hooks/useImport' export default function ImportPage() { const router = useRouter() const { state, files, setFiles, isAnalyzing, analysisResult, importHistory, historyLoading, handleFilesAdded, handleTypeChange, handleRemove, handleAnalyze, handleDeleteHistory, } = useImport() if (state.customerType === 'new') { router.push('/sdk') return null } return (
{/* Header */}

Dokumente importieren

Laden Sie Ihre bestehenden Compliance-Dokumente hoch. Unsere KI analysiert sie und identifiziert Luecken fuer KI-Compliance.

{/* Upload Zone */} {/* File List */} {files.length > 0 && (

{files.length} Dokument(e)

{!isAnalyzing && !analysisResult && ( )}
{files.map(file => ( ))}
)} {/* Analyze Button */} {files.length > 0 && !analysisResult && (
)} {/* Analysis Result */} {analysisResult && } {/* Continue Button */} {analysisResult && (

Die Gap-Analyse wurde gespeichert. Sie koennen jetzt mit dem Compliance-Assessment fortfahren.

)} {/* Import History */}
) }