import React from 'react'; import { useSimulatorStore } from '../../store/useSimulatorStore'; import { WireRenderer } from './WireRenderer'; import { WireInProgressRenderer } from './WireInProgressRenderer'; interface WireLayerProps { hoveredWireId: string | null; wireDragPreview: { wireId: string; waypoints: { x: number; y: number }[] } | null; } export const WireLayer: React.FC = ({ hoveredWireId, wireDragPreview }) => { const wires = useSimulatorStore((s) => s.wires); const wireInProgress = useSimulatorStore((s) => s.wireInProgress); const selectedWireId = useSimulatorStore((s) => s.selectedWireId); return ( {wires.map((wire) => ( ))} {wireInProgress && ( )} ); };