feat(tools): add crop tool

This commit is contained in:
syntaxbullet
2026-07-03 17:32:46 +02:00
parent 5e4cde4df9
commit c946fb4c93
8 changed files with 48 additions and 8 deletions

View File

@@ -1,5 +1,12 @@
import type { ToolId } from "@editor/tools";
export function labelForTool(tool: ToolId): string {
return tool === "pan" ? "Pan" : "Select";
switch (tool) {
case "crop":
return "Crop";
case "pan":
return "Pan";
case "select":
return "Select";
}
}