(node)
| 137 | } |
| 138 | |
| 139 | const renderIcon = (node) => { |
| 140 | const foundIcon = AGENTFLOW_ICONS.find((icon) => icon.name === node.name) |
| 141 | |
| 142 | if (!foundIcon) return null |
| 143 | return <foundIcon.icon size={24} color={'white'} /> |
| 144 | } |
| 145 | |
| 146 | useEffect(() => { |
| 147 | if (ref.current) { |