diff --git a/src/components/Panels/LeftPanel.tsx b/src/components/Panels/LeftPanel.tsx index c73cbb5..4590e2e 100644 --- a/src/components/Panels/LeftPanel.tsx +++ b/src/components/Panels/LeftPanel.tsx @@ -8,6 +8,8 @@ import { usePanelStore } from '../../stores/panelStore'; import { useGraphWithHistory } from '../../hooks/useGraphWithHistory'; import { useEditorStore } from '../../stores/editorStore'; import { createNode } from '../../utils/nodeUtils'; +import { getIconComponent } from '../../utils/iconUtils'; +import { getContrastColor } from '../../utils/colorUtils'; /** * LeftPanel - Collapsible tools panel on the left side @@ -107,21 +109,38 @@ const LeftPanel = ({ onDeselectAll, onAddNode }: LeftPanelProps) => { {leftPanelSections.addActors && (
- {nodeTypes.map((nodeType) => ( - - ))} + {nodeTypes.map((nodeType) => { + const IconComponent = getIconComponent(nodeType.icon); + const textColor = getContrastColor(nodeType.color); + + return ( + + ); + })}

Click a button to add an actor to the canvas