- {notebooks.map((nb) => {
+ {notebooks.map((nb, idx) => {
const active = nb.id === selectedId;
+ const hover = nb.id === hoverId;
+ const isFirst = idx === 0;
+ const isLast = idx === notebooks.length - 1;
return (
-
+
+ {hover && onReorder && notebooks.length > 1 && (
+
+
+
+
+ )}
+
);
})}