Files
Pien-Studio/apps/web/lib/editor-tool-controller.ts
T

17 lines
342 B
TypeScript
Raw Normal View History

2026-05-21 00:02:12 +07:00
import type { EditorToolId } from "@pien-studio/editor-core";
2026-05-10 03:06:54 +07:00
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;