Move various document menu actions to action definitions

This commit is contained in:
Tom Moor
2022-08-08 17:31:53 +02:00
parent 3ab9d7492e
commit 8c39487c80
5 changed files with 170 additions and 201 deletions

View File

@@ -88,6 +88,7 @@ export type Action = {
section: ((context: ActionContext) => string) | string;
shortcut?: string[];
keywords?: string;
dangerous?: boolean;
iconInContextMenu?: boolean;
icon?: React.ReactElement | React.FC;
placeholder?: ((context: ActionContext) => string) | string;