feat(tools): add crop tool
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Cursor, Hand } from "@phosphor-icons/react";
|
||||
import { Crop, Cursor, Hand } from "@phosphor-icons/react";
|
||||
import { commandIds } from "@commands/ids";
|
||||
import type { AppStore } from "@editor/store";
|
||||
import type { InteractionMode, ToolId } from "@editor/tools";
|
||||
@@ -41,6 +41,8 @@ export function ToolOverlay({ activeTool, interactionMode, dispatch }: ToolOverl
|
||||
|
||||
function iconForTool(tool: ToolId) {
|
||||
switch (tool) {
|
||||
case "crop":
|
||||
return Crop;
|
||||
case "pan":
|
||||
return Hand;
|
||||
case "select":
|
||||
|
||||
Reference in New Issue
Block a user