{#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}
{:else if tool.current === Tool.MERGE}
{:else if tool.current === Tool.ELEVATION}
{:else if tool.current === Tool.EXTRACT}
{:else if tool.current === Tool.CLEAN}
{:else if tool.current === Tool.REDUCE}
{/if}
{/if}
{ if (tool.current !== null && e.key === 'Escape') { tool.current = null; } }} />