"use client"; import { FC, useState, useRef } from "react"; import { Transition } from "@headlessui/react"; import Link from "next/link"; import { FileText, HelpCircle, MoveLeft } from "lucide-react"; // hooks import { useTheme } from "@/hooks"; // icons import { DiscordIcon, GithubIcon } from "@plane/ui"; // assets import packageJson from "package.json"; const helpOptions = [ { name: "Documentation", href: "https://docs.plane.so/", Icon: FileText, }, { name: "Join our Discord", href: "https://discord.com/invite/A92xrEGCge", Icon: DiscordIcon, }, { name: "Report a bug", href: "https://github.com/makeplane/plane/issues/new/choose", Icon: GithubIcon, }, ]; export const HelpSection: FC = () => { // states const [isNeedHelpOpen, setIsNeedHelpOpen] = useState(false); // store const { isSidebarCollapsed, toggleSidebar } = useTheme(); // refs const helpOptionsRef = useRef(null); return (
{helpOptions.map(({ name, Icon, href }) => { if (href) return (
{name}
); else return ( ); })}
Version: v{packageJson.version}
); };