import { Home, Users, Workflow } from "lucide-react" import { SidebarAppearance } from "@/components/Common/Appearance" import { Logo } from "@/components/Common/Logo" import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, } from "@/components/ui/sidebar" import useAuth from "@/hooks/useAuth" import { type Item, Main } from "./Main" import { User } from "./User" const baseItems: Item[] = [ { icon: Home, title: "Dashboard", path: "/" }, { icon: Workflow, title: "Flows", path: "/flows" }, ] export function AppSidebar() { const { user: currentUser } = useAuth() const items = currentUser?.is_superuser ? [...baseItems, { icon: Users, title: "Admin", path: "/admin" }] : baseItems return ( // Floating frosted chrome over the bg-card content region; see the root // DESIGN-GUIDELINES.md → Shells and → Overlay surfaces & content chips.
) } export default AppSidebar