aboutsummaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/CommandPalette/defaultCommandPaletteItems.ts
blob: dea14ff262ec684dfbea412048d97c8b58dafd7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { actionToggleTheme } from "../../actions";
import type { CommandPaletteItem } from "./types";

export const toggleTheme: CommandPaletteItem = {
  ...actionToggleTheme,
  category: "App",
  label: "Toggle theme",
  perform: ({ actionManager }) => {
    actionManager.executeAction(actionToggleTheme, "commandPalette");
  },
};