import React, { 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, UserGroupIcon, XMarkIcon, ArrowLongLeftIcon, QuestionMarkCircleIcon, } from "@heroicons/react/24/outline"; // constants import { classNames } from "constants/common"; const navigation = (projectId: string) => [ { name: "Issues", href: `/projects/${projectId}/issues`, icon: RectangleStackIcon, }, { name: "Cycles", href: `/projects/${projectId}/cycles`, icon: ArrowPathIcon, }, { name: "Members", href: `/projects/${projectId}/members`, icon: UserGroupIcon, }, { name: "Settings", href: `/projects/${projectId}/settings`, icon: Cog6ToothIcon, }, ]; const Sidebar: React.FC = () => { const [sidebarOpen, setSidebarOpen] = useState(false); const router = useRouter(); const { projectId } = router.query; const { collapsed: sidebarCollapse, toggleCollapsed } = useTheme(); return ( ); }; export default Sidebar;