mirror of
https://github.com/YuzuZensai/Pien-Studio.git
synced 2026-09-02 14:18:35 +00:00
17 lines
342 B
TypeScript
17 lines
342 B
TypeScript
import type { EditorToolId } from "@pien-studio/editor-core";
|
|
|
|
export type ToolModeController = {
|
|
kind: "mode";
|
|
id: EditorToolId;
|
|
label: string;
|
|
};
|
|
|
|
export type ToolActionController = {
|
|
kind: "action";
|
|
id: string;
|
|
label: string;
|
|
run: () => void;
|
|
};
|
|
|
|
export type EditorToolController = ToolModeController | ToolActionController;
|