import { useState } from 'react'; import type { ReactNode } from 'react'; import { ChevronDown } from 'lucide-react'; interface CollapsibleProps { summary: ReactNode; children: ReactNode; defaultOpen?: boolean; className?: string; summaryClassName?: string; } /** * Lightweight disclosure used for densifying the Settings page. * Renders a clickable summary row and animates open/close via a simple * display swap (no height animation — keeps it snappy and layout-stable). */ export function Collapsible({ summary, children, defaultOpen = false, className = '', summaryClassName = '', }: CollapsibleProps) { const [open, setOpen] = useState(defaultOpen); return (