diff --git a/src/design-system/layout/Sidebar/Sidebar.tsx b/src/design-system/layout/Sidebar/Sidebar.tsx index 8c5080b..f154c9f 100644 --- a/src/design-system/layout/Sidebar/Sidebar.tsx +++ b/src/design-system/layout/Sidebar/Sidebar.tsx @@ -1,11 +1,9 @@ -import { type ReactNode } from 'react' +import { type ReactNode, Children, isValidElement } from 'react' import { Search, X, ChevronsLeft, ChevronsRight, - ChevronRight, - ChevronDown, } from 'lucide-react' import styles from './Sidebar.module.css' import { SidebarContext, useSidebarContext } from './SidebarContext' @@ -124,9 +122,6 @@ function SidebarSection({ aria-label={open ? `Collapse ${label}` : `Expand ${label}`} onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onToggle() } }} > - {icon && {icon}} {label} @@ -199,35 +194,50 @@ function SidebarRoot({ )} - {/* Search (only when expanded and handler provided) */} - {onSearchChange && !collapsed && ( -