()
| 47 | |
| 48 | // Get different shades of the color based on state |
| 49 | const getStateColor = () => { |
| 50 | if (data.selected) return nodeColor |
| 51 | if (isHovered) return alpha(nodeColor, 0.8) |
| 52 | return alpha(nodeColor, 0.5) |
| 53 | } |
| 54 | |
| 55 | const getBackgroundColor = () => { |
| 56 | if (customization.isDarkMode) { |