From bdb8443a5145f5a4a6eb5d6bd4315266fc4a7a46 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Wed, 29 Oct 2025 12:52:59 +0000
Subject: [PATCH] Refactor sidebar component
---
src/components/layout/AppLayout.tsx | 15 +-
src/components/layout/AppSidebar.tsx | 206 +++++++++++++++-----------
src/components/layout/ThemeToggle.tsx | 23 +++
3 files changed, 152 insertions(+), 92 deletions(-)
create mode 100644 src/components/layout/ThemeToggle.tsx
diff --git a/src/components/layout/AppLayout.tsx b/src/components/layout/AppLayout.tsx
index 1649024..6951437 100644
--- a/src/components/layout/AppLayout.tsx
+++ b/src/components/layout/AppLayout.tsx
@@ -1,16 +1,13 @@
-import { SidebarProvider } from "@/components/ui/sidebar";
import { AppSidebar } from "./AppSidebar";
import { Outlet } from "react-router-dom";
export function AppLayout() {
return (
-
PromptLab
+ if (isCollapsed) { + return ( +