mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 07:20:21 +02:00
13 lines
335 B
TypeScript
13 lines
335 B
TypeScript
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");
|
|
},
|
|
};
|