import * as CollapsiblePrimitive from "@radix-ui/react-collapsible" import React, { useState } from "react" import { SvgUse } from "../../shared/SvgUse" function Collapsible({ ...props }: React.ComponentProps) { return } function CollapsibleTrigger({ ...props }: React.ComponentProps) { return } function CollapsibleContent({ className, ...props }: React.ComponentProps) { return ( ) } // Automatic collapsible with built-in state management and chevron function CollapsibleWithChevron({ children, trigger, chevronClassName = "size-4", ...props }: Omit, "open" | "onOpenChange"> & { trigger: React.ReactElement chevronClassName?: string }) { const [open, setOpen] = useState(false) // Add chevron to the trigger const triggerWithChevron = React.cloneElement(trigger, { ...trigger.props, children: ( <> {trigger.props.children} ), }) return ( {triggerWithChevron} {children} ) } // Simple chevron icon component (for manual usage) function ChevronIcon({ open, className = "size-4", }: Readonly<{ open: boolean; className?: string }>) { return } export { Collapsible, CollapsibleTrigger, CollapsibleContent, CollapsibleWithChevron, ChevronIcon }