import { Command } from "cmdk"; import { FileText, GithubIcon, MessageSquare, Rocket } from "lucide-react"; // hooks import { DiscordIcon } from "@plane/ui"; import { useApplication } from "@/hooks/store"; // ui type Props = { closePalette: () => void; }; export const CommandPaletteHelpActions: React.FC = (props) => { const { closePalette } = props; const { commandPalette: { toggleShortcutModal }, } = useApplication(); return ( { closePalette(); toggleShortcutModal(true); }} className="focus:outline-none" >
Open keyboard shortcuts
{ closePalette(); window.open("https://docs.plane.so/", "_blank"); }} className="focus:outline-none" >
Open Plane documentation
{ closePalette(); window.open("https://discord.com/invite/A92xrEGCge", "_blank"); }} className="focus:outline-none" >
Join our Discord
{ closePalette(); window.open("https://github.com/makeplane/plane/issues/new/choose", "_blank"); }} className="focus:outline-none" >
Report a bug
{ closePalette(); (window as any)?.$crisp.push(["do", "chat:open"]); }} className="focus:outline-none" >
Chat with us
); };