diff --git a/frontend/src/components/workspace/workspace-sidebar.tsx b/frontend/src/components/workspace/workspace-sidebar.tsx index 911aee0..88c8452 100644 --- a/frontend/src/components/workspace/workspace-sidebar.tsx +++ b/frontend/src/components/workspace/workspace-sidebar.tsx @@ -6,6 +6,7 @@ import { SidebarContent, SidebarFooter, SidebarRail, + useSidebar, } from "@/components/ui/sidebar"; import { RecentChatList } from "./recent-chat-list"; @@ -16,6 +17,7 @@ import { WorkspaceNavMenu } from "./workspace-nav-menu"; export function WorkspaceSidebar({ ...props }: React.ComponentProps) { + const { open: isSidebarOpen } = useSidebar(); return ( <> @@ -24,7 +26,7 @@ export function WorkspaceSidebar({ - + {isSidebarOpen && }