import React from "react"; // hooks import useTheme from "lib/hooks/useTheme"; // components import ProjectsList from "components/sidebar/projects-list"; import WorkspaceOptions from "components/sidebar/workspace-options"; // icons import { Cog6ToothIcon, RectangleStackIcon, ArrowLongLeftIcon, QuestionMarkCircleIcon, RectangleGroupIcon, } from "@heroicons/react/24/outline"; import { CyclesIcon } from "ui/icons"; type Props = { toggleSidebar: boolean; setToggleSidebar: React.Dispatch>; }; const navigation = (workspaceSlug: string, projectId: string) => [ { name: "Issues", href: `/${workspaceSlug}/projects/${projectId}/issues`, icon: RectangleStackIcon, }, { name: "Cycles", href: `/${workspaceSlug}/projects/${projectId}/cycles`, icon: CyclesIcon, }, { name: "Modules", href: `/${workspaceSlug}/projects/${projectId}/modules`, icon: RectangleGroupIcon, }, { name: "Settings", href: `/${workspaceSlug}/projects/${projectId}/settings`, icon: Cog6ToothIcon, }, ]; const Sidebar: React.FC = ({ toggleSidebar, setToggleSidebar }) => { const { collapsed: sidebarCollapse, toggleCollapsed } = useTheme(); return ( ); }; export default Sidebar;