import React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; // icons import { ClipboardDocumentListIcon, Cog6ToothIcon, HomeIcon, RectangleStackIcon, } from "@heroicons/react/24/outline"; // hooks import useTheme from "hooks/use-theme"; const workspaceLinks = (workspaceSlug: string) => [ { icon: HomeIcon, name: "Home", href: `/${workspaceSlug}`, }, { icon: ClipboardDocumentListIcon, name: "Projects", href: `/${workspaceSlug}/projects`, }, { icon: RectangleStackIcon, name: "My Issues", href: `/${workspaceSlug}/me/my-issues`, }, { icon: Cog6ToothIcon, name: "Settings", href: `/${workspaceSlug}/settings`, }, ]; export const WorkspaceSidebarMenu = () => { // router const router = useRouter(); const { workspaceSlug } = router.query; // theme context const { collapsed: sidebarCollapse } = useTheme(); return (
); };