mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
* build: enable consistent type imports eslint rule * change to warn * fix the warning in example and excalidraw-app * fix packages * enable type annotations and throw error for the rule
11 lines
334 B
TypeScript
11 lines
334 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");
|
|
},
|
|
};
|