import { PanelRightOpen } from 'lucide-react'; import { useSidebarSettings } from '../hooks/useSidebarSettings'; import { useWorkspaces } from '../hooks/useWorkspaces'; import { useSidebarModals } from '../hooks/useSidebarModals'; import SidebarHeader from './SidebarHeader'; import { cn } from '@/lib/utils'; import { Button } from '@/shared/view/ui'; import ProjectCreationWizard from '@/components/project-creation-wizard'; export function Sidebar() { const { isCollapsed, toggleCollapse, setCollapsed } = useSidebarSettings(); const { workspaces, isRefreshing, refreshWorkspaces } = useWorkspaces(); const { showNewProject, openNewProject, closeNewProject } = useSidebarModals(); return ( <> <> {/* Mobile Backdrop Overlay - allows tapping outside to close */} {!isCollapsed && (
setCollapsed(true)} /> )} {/* Collapsed view handle - Only show on desktop since mobile hides it completely behind a toggle usually, but let's keep it consistent or standard. */} {isCollapsed && ( )} {/* MODALS */} {showNewProject && ( )} ); }