+ ) : (
+ Object.entries(groups).map(([group, groupItems]) => (
+
+
{group}
+ {groupItems.map(item => {
+ const idx = flatIdx++
+ const isActive = idx === activeIdx
+ return (
+
setActiveIdx(idx)}
+ style={{
+ display: 'flex', alignItems: 'center', gap: 10,
+ padding: '8px 16px', cursor: 'pointer',
+ background: isActive ? 'rgba(74,144,217,0.08)' : 'transparent',
+ transition: 'background 0.1s',
+ }}
+ >
+ {item.icon}
+ {item.label}
+ {isActive && (
+ ↵
+ )}
+
+ )
+ })}
+