()
| 65 | } |
| 66 | |
| 67 | const getBorderColor = () => { |
| 68 | if (data.selected) return theme.palette.primary.main |
| 69 | else if (theme?.customization?.isDarkMode) return theme.palette.grey[900] + 25 |
| 70 | else return theme.palette.grey[900] + 50 |
| 71 | } |
| 72 | |
| 73 | useEffect(() => { |
| 74 | const componentNode = canvas.componentNodes.find((nd) => nd.name === data.name) |