{#if tool.current !== null}
{#if tool.current === Tool.ROUTING} {:else if tool.current === Tool.SCISSORS} {:else if tool.current === Tool.WAYPOINT} {:else if tool.current === Tool.TIME}
{/if} { if (tool.current !== null && e.key === 'Escape') { tool.current = null; } }} />