{
e.stopPropagation();
- onToggleSelect(path);
+ onRun(path);
}}
+ onMouseEnter={(e) => {
+ e.currentTarget.style.backgroundColor = "#238636";
+ e.currentTarget.style.color = "#ffffff";
+ e.currentTarget.style.borderColor = "#2ea043";
+ }}
+ onMouseLeave={(e) => {
+ e.currentTarget.style.backgroundColor = isSelected
+ ? "#238636"
+ : "transparent";
+ e.currentTarget.style.color = isSelected
+ ? "#ffffff"
+ : "var(--text-secondary)";
+ e.currentTarget.style.borderColor = isSelected
+ ? "#2ea043"
+ : "transparent";
+ }}
+ title="Run script"
>
- {isSelected && (
-
- )}
-
+