import { Command } from "cmdk"; import { ContrastIcon, FileText } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // ui import { DiceIcon, PhotoFilterIcon } from "@plane/ui"; type Props = { closePalette: () => void; }; export const CommandPaletteProjectActions: React.FC = (props) => { const { closePalette } = props; const { commandPalette: { toggleCreateCycleModal, toggleCreateModuleModal, toggleCreatePageModal, toggleCreateViewModal }, trackEvent: { setTrackElement }, } = useMobxStore(); return ( <> { closePalette(); setTrackElement("COMMAND_PALETTE"); toggleCreateCycleModal(true); }} className="focus:outline-none" >
Create new cycle
Q
{ closePalette(); toggleCreateModuleModal(true); }} className="focus:outline-none" >
Create new module
M
{ closePalette(); toggleCreateViewModal(true); }} className="focus:outline-none" >
Create new view
V
{ closePalette(); toggleCreatePageModal(true); }} className="focus:outline-none" >
Create new page
D
); };