import { Command } from "cmdk"; import { FileText, GithubIcon, MessageSquare, Rocket } from "lucide-react"; // ui import { DiscordIcon } from "@plane/ui"; // hooks import { useCommandPalette } from "@/hooks/store"; type Props = { closePalette: () => void; }; export const CommandPaletteHelpActions: React.FC = (props) => { const { closePalette } = props; // hooks const { toggleShortcutModal } = useCommandPalette(); 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(); if (window) { window.$crisp.push(["do", "chat:show"]); } }} className="focus:outline-none" >
Chat with us
); };