+ {/* Root directory option */}
+ {(!search.trim() || '/ (root)'.includes(search.toLowerCase())) && (
+
currentParent !== '' && handleSelect('')}
+ onMouseEnter={e => { if (currentParent !== '') (e.currentTarget.style.background = token.colorBgTextHover); }}
+ onMouseLeave={e => { e.currentTarget.style.background = 'transparent'; }}
+ >
+
+ / (root)
+ {currentParent === '' && (
+ current
+ )}
+
+ )}
+
+
{
+ const isCurrent = item.path === currentParent;
+ return (
+ !isCurrent && handleSelect(item.path)}
+ onMouseEnter={e => { if (!isCurrent) (e.currentTarget.style.background = token.colorBgTextHover); }}
+ onMouseLeave={e => { e.currentTarget.style.background = 'transparent'; }}
+ >
+
+
+ {item.path}
+
+ {isCurrent && (
+
current
+ )}
+
+ );
+ }}
+ />
+
+