'use client' import { useState } from 'react' import Link from 'next/link' import { COMPANY_PROFILE_PRESETS, type CompanyProfilePreset } from '@/lib/sdk/company-profile-presets' import { DOC_LABELS, CATEGORY_COLORS } from './doc-labels' export function PresetSection({ projectId }: { projectId?: string }) { const [selectedPreset, setSelectedPreset] = useState(null) // Group recommended docs by category const groupedDocs = selectedPreset ? selectedPreset.recommendedDocs.reduce>((acc, docType) => { const info = DOC_LABELS[docType] if (!info) return acc if (!acc[info.category]) acc[info.category] = [] acc[info.category].push(info.label) return acc }, {}) : null return (

Schnellstart: Welcher Unternehmenstyp sind Sie?

Waehlen Sie Ihre Branche — wir zeigen Ihnen welche Dokumente Sie benoetigen.

{/* Preset Cards */}
{COMPANY_PROFILE_PRESETS.map((preset) => ( ))}
{/* Document Preview — shown when a preset is selected */} {selectedPreset && groupedDocs && (

{selectedPreset.icon} {selectedPreset.label} — Ihre Dokumente

{selectedPreset.recommendedDocs.length} Dokumente werden fuer Sie vorbereitet

Jetzt starten
{Object.entries(groupedDocs).map(([category, docs]) => (
{category} {docs.map((doc) => (
{doc}
))}
))}
)}
) }