import { Command } from "cmdk"; import { ContrastIcon, FileText } from "lucide-react"; // hooks import { useApplication } from "hooks/store"; // 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 }, eventTracker: { setTrackElement }, } = useApplication(); 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
); };