- {#each local_lists.current as list}
-
+ {#each local_lists.current as list (list.id)}
+ {@const is_archived = !!archived_lists.current.find(a => a === list.id)}
+ {#if is_archived}
+ {#if show_archived}
+
+ {/if}
+ {:else}
+
+ {/if}
{/each}
-
{#if is_menu_open}
+ {@const archived_items = local_lists.current.filter(l => archived_lists.current.includes(l.id))}
+ {@const active_items = local_lists.current.filter(l => !archived_lists.current.includes(l.id))}