{#each $modalState.activeModals as modal(modal.id)} onClose(modal)}> {#if modal != null && modal.svelteComponent != null} {/if}
{#if modal != null && modal.buttons?.length > 0} {#each modal.buttons as button} {/each} {/if} {#if modal.showCloseButton} {/if}
{/each}