({ id: route.path, text: route.name, }))} on:select={(e) => { navigate(e.detail.id.toString()); }} />
{#each routes as route (route.path)} {#if currentPath === route.path} {/if} {/each}