{#each grouped_messages as group (group.type)}
toggle_group(group.type)} on:close={(e) => on_close(e.detail)} />
{/each}