+
+ {/* Command items */}
+ {commands.map((command) => {
+ const globalIndex = filteredCommands.indexOf(command);
+ const isSelected = globalIndex === selectedIndex;
+ const isCurrent = command.route === currentPath;
+
+ return (
+
handleExecute(command)}
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ padding: '10px 16px',
+ cursor: 'pointer',
+ backgroundColor: isSelected
+ ? token.colorPrimaryBg
+ : 'transparent',
+ borderLeft: isSelected
+ ? `3px solid ${token.colorPrimary}`
+ : '3px solid transparent',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={() => setSelectedIndex(globalIndex)}
+ >
+ {/* Icon */}
+
+ {command.icon}
+
+
+ {/* Label and description */}
+
+
+
+ {command.label}
+
+ {isCurrent && (
+
+ Aktuel
+
+ )}
+
+ {command.description && (
+
+ {command.description}
+
+ )}
+
+
+ {/* Shortcut badge */}
+ {command.shortcut && (
+
+ {formatShortcut(command.shortcut)
+ .split(' ')
+ .map((key, i) => (
+
+ {key}
+
+ ))}
+
+ )}
+