{#if $tocStore.length} Table of Contents {#each $tocStore as tocHeading} { reactiveActiveId = tocHeading.id; }} > {tocHeading.text} {/each} {/if}