import Link from "next/link"; import { useRouter } from "next/router"; // icons import { BrainCog, Cog, Lock, Mail } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // ui import { Tooltip } from "@plane/ui"; const INSTANCE_ADMIN_LINKS = [ { Icon: Cog, name: "General", description: "General settings here", href: `/god-mode`, }, { Icon: Mail, name: "Email", description: "Email related settings will go here", href: `/god-mode/email`, }, { Icon: Lock, name: "Authorization", description: "Autorization", href: `/god-mode/authorization`, }, { Icon: BrainCog, name: "OpenAI", description: "OpenAI configurations", href: `/god-mode/openai`, }, ]; export const InstanceAdminSidebarMenu = () => { const { theme: { sidebarCollapsed }, } = useMobxStore(); // router const router = useRouter(); return (
{INSTANCE_ADMIN_LINKS.map((item, index) => { const isActive = item.name === "Settings" ? router.asPath.includes(item.href) : router.asPath === item.href; return (
{} {!sidebarCollapsed && (
{item.name} {item.description}
)}
); })}
); };