{#if posts?.length == 0}
    {:else} {#each posts as post, index (post.post.id)}
  • { posts = posts.toSpliced(index, 1) }} />
  • {/each} {/if} {@render children?.()}