import React, { useEffect, useState } from "react"; // next import Link from "next/link"; import { useRouter } from "next/router"; // hooks import useTheme from "lib/hooks/useTheme"; // components import ProjectsList from "components/sidebar/projects-list"; import WorkspaceOptions from "components/sidebar/workspace-options"; // headless ui import { Dialog, Transition } from "@headlessui/react"; // icons import { ArrowPathIcon, Bars3Icon, Cog6ToothIcon, RectangleStackIcon, XMarkIcon, ArrowLongLeftIcon, QuestionMarkCircleIcon, RectangleGroupIcon, } from "@heroicons/react/24/outline"; // common import { classNames } from "constants/common"; type Props = { collapse?: boolean }; const navigation = (projectId: string) => [ { name: "Issues", href: `/projects/${projectId}/issues`, icon: RectangleStackIcon, }, { name: "Cycles", href: `/projects/${projectId}/cycles`, icon: ArrowPathIcon, }, // { // name: "Modules", // href: `/projects/${projectId}/modules`, // icon: RectangleGroupIcon, // }, { name: "Settings", href: `/projects/${projectId}/settings`, icon: Cog6ToothIcon, }, ]; const Sidebar: React.FC = ({ collapse = false }) => { const [sidebarOpen, setSidebarOpen] = useState(false); const router = useRouter(); const { projectId } = router.query; const { collapsed: sidebarCollapse, toggleCollapsed } = useTheme(); return ( ); }; export default Sidebar;