"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { observer } from "mobx-react-lite"; import { Image, BrainCog, Cog, Lock, Mail } from "lucide-react"; import { Tooltip } from "@plane/ui"; // hooks import { useTheme } from "@/hooks"; // helpers import { cn } from "@/helpers/common.helper"; const INSTANCE_ADMIN_LINKS = [ { Icon: Cog, name: "General", description: "Identify your instances and get key details", href: `/general/`, }, { Icon: Mail, name: "Email", description: "Set up emails to your users", href: `/email/`, }, { Icon: Lock, name: "Authentication", description: "Configure authentication modes", href: `/authentication/`, }, { Icon: BrainCog, name: "Artificial intelligence", description: "Configure your OpenAI creds", href: `/ai/`, }, { Icon: Image, name: "Images in Plane", description: "Allow third-party image libraries", href: `/image/`, }, ]; export const SidebarMenu = observer(() => { // store hooks const { isSidebarCollapsed, toggleSidebar } = useTheme(); // router const pathName = usePathname(); const handleItemClick = () => { if (window.innerWidth < 768) { toggleSidebar(!isSidebarCollapsed); } }; return (