mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-22 09:47:01 +02:00
12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
import { actionToggleTheme } from "../../actions";
|
|
import { CommandPaletteItem } from "./types";
|
|
|
|
export const toggleTheme: CommandPaletteItem = {
|
|
...actionToggleTheme,
|
|
category: "App",
|
|
label: "Toggle theme",
|
|
perform: ({ actionManager }) => {
|
|
actionManager.executeAction(actionToggleTheme, "commandPalette");
|
|
},
|
|
};
|