Agent Types: {#each agentTypeLegend as type (type)} {@const colors = agentTypeColor(type)} {@const colorSet = themeStore.isDark ? colors.dark : colors.light} {agentTypeLabel(type)} {/each}
{#if selectedNode} {@const colors = agentTypeColor(selectedNode.agentType)} {@const colorSet = themeStore.isDark ? colors.dark : colors.light} (selectedNode = null)} /> {/if}