{#await templatesPromise}
{:then templates} {#if templates?.length > 0} Select a template below, or start from scratch. {:else} Start your app from scratch below. {/if}
{#each templates as template}
onSelect(template)}>
{template.name}

{template?.category?.toUpperCase()}

{/each}
onSelect(null)}>
Start from scratch

BLANK

{:catch err}

{err}

{/await}