Files
Pien-Studio/apps/web/lib/editor-tool-controller.ts
2026-05-24 21:05:21 +07:00

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;