{#each robots as robot (robot.id)} {/each} {#if showConnectionModal && selectedRobot}

{modalType === "consumer" ? "Consumer Driver" : modalType === "producer" ? "Producer Drivers" : "Manual Control"}

{#if modalType === "consumer"} {:else if modalType === "producer"} {:else}

Manual control interface would go here

{/if}
{#if modalType !== "manual"} Note: USB connections will prompt for calibration if needed {/if}
{/if}