{#if !(imageBackgrounds.length === 0 && isEditMode)}

Background Images

{#if !isEditMode} handleFileChange(e.detail)} /> {/if} {#each imageBackgrounds as bg (bg.id)} {#if isVisible && bg.blob} selectBackground(bg.id)} onDelete={() => deleteBackground(bg.id)}/> {:else}
{/if} {/each}
{/if} {#if !(videoBackgrounds.length === 0 && isEditMode)}

Background Videos

{#if !isEditMode} handleFileChange(e.detail)} /> {/if} {#each videoBackgrounds as bg (bg.id)} {#if isVisible && bg.blob} selectBackground(bg.id)} onDelete={() => deleteBackground(bg.id)} /> {:else}
{/if} {/each}
{/if}