import { FaArrowsUpDownLeftRight, FaExpand } from "react-icons/fa6"; import type { DefinedTool } from "./interfaces"; import type { JSX } from "react"; import { FaMousePointer } from "react-icons/fa"; export const TOOLS: DefinedTool[] = []; export function defineTool( key: K, name: string, icon: () => JSX.Element, defaultSettings: () => T = () => null, ): DefinedTool { const tool: DefinedTool = { key, name, icon, defaultSettings, }; TOOLS.push(tool); return tool; } export const TOOL_SELECT = defineTool("select", "Select", () => ); export const TOOL_CANVAS_MOVE = defineTool("move", "move-canvas", () => ); export const TOOL_OBJECT_MOVE = defineTool("move-object", "Move object", () => );