{#if $currentTool !== null}
{#if $currentTool === Tool.ROUTING} {:else if $currentTool === Tool.WAYPOINT} {/if}
{/if} { if ($currentTool && e.key === 'Escape') { currentTool.set(null); } }} />