import { useState } from 'react' /** * Generischer Drill-down-Container — AP1.9d Anti-Todo-Wand. * Bewusst layout-neutral für späteres UI-Redesign. */ export function CollapsibleSection({ title, lead, defaultCollapsed = true, expandLabel = 'Alle anzeigen', collapseLabel = 'Einklappen', headerActions = null, className = 'card', children, }) { const [expanded, setExpanded] = useState(!defaultCollapsed) return (
{title &&

{title}

} {lead &&

{lead}

}
{headerActions}
{expanded ? ( <> {children}

) : (

)}
) }