import { useState } from 'react'; import { ChevronRight } from 'lucide-react'; export function Expander({ icon: Icon, title, description, defaultOpen = false, children }) { const [open, setOpen] = useState(defaultOpen); return (
setOpen((v) => !v)}> {Icon && }
{title}
{description &&
{description}
}
{open &&
{children}
}
); }