"use client"; import { useState } from "react"; import { IconRail, type PanelId } from "./icon-rail"; import { Sidebar, SidebarContent, SidebarHeader, } from "@/components/ui/primitives/sidebar"; import { cn } from "@/lib/utils"; import { SettingsPanel } from "./panels/settings-panel"; import { SitePanel } from "./panels/site-panel"; export function AppSidebar() { const [activePanel, setActivePanel] = useState("site"); const renderPanelContent = () => { switch (activePanel) { case "site": return ; case "settings": return ; default: return null; } }; const getPanelTitle = () => { switch (activePanel) { case "site": return "Site"; case "collections": return "Collections"; case "settings": return "Settings"; default: return ""; } }; return (
{/* Icon Rail */} {/* Panel Content */}

{getPanelTitle()}

{renderPanelContent()}
); }