{#if unused.length > 0}
{#if unused.length > maxItems}
collapsed = !collapsed}>
{@html icon}
{collapseMsg}
{/if} {unusedMsg}
{#if collapsed} {#each unused.slice(0, maxItems) as entry}
{entry}
{/each} {#if unused.length > maxItems}
collapsed = !collapsed}> +{unused.length - maxItems}
{/if} {:else} {#each unused as entry}
{entry}
{/each} {/if}
{/if}
{tr.changeNotetypeCurrent()}
{tr.changeNotetypeNew()}
{#each $info.mapForContext(ctx) as _, newIndex}
{/each}