import React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; // icons import { GridViewIcon, AssignmentClipboardIcon, TickMarkIcon, SettingIcon } from "components/icons"; // hooks import useTheme from "hooks/use-theme"; const workspaceLinks = (workspaceSlug: string) => [ { icon: GridViewIcon, name: "Dashboard", href: `/${workspaceSlug}`, }, { icon: AssignmentClipboardIcon, name: "Projects", href: `/${workspaceSlug}/projects`, }, { icon: TickMarkIcon, name: "My Issues", href: `/${workspaceSlug}/me/my-issues`, }, { icon: SettingIcon, name: "Settings", href: `/${workspaceSlug}/settings`, }, ]; export const WorkspaceSidebarMenu: React.FC = () => { // router const router = useRouter(); const { workspaceSlug } = router.query; // theme context const { collapsed: sidebarCollapse } = useTheme(); return (
); };