+ <>
-
- {String(data.index + 1).padStart(2, "0")}
-
- {node.state !== "undiscovered" ? (
-
-
-
- ) : null}
-
- {node.label}
- {node.detail ? {node.detail} : null}
- {node.progress ? {node.progress} : null}
-
+ {discovered ? (
+
+ ) : (
+
+
+ {String(data.index + 1).padStart(2, "0")}
+
+
+ {stateLabel}
+
+
+ {node.label}
+
+
+ )}
+
+
+
-
+ >
);
}
@@ -95,46 +182,38 @@ interface MapCanvasProps {
projection: LabProjection;
selectedNodeId?: string;
onSelectNode: (nodeId: string) => void;
+ onOpenNode: () => void;
}
export function MapCanvas({
projection,
selectedNodeId,
onSelectNode,
+ onOpenNode,
}: MapCanvasProps) {
const nodes = useMemo