{#if onMainScreen}
{#if ($search === undefined || $search === "") && !isCustom} {/if} {#each filteredThemes as theme} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)} {/if} {/each}
{:else }
{#if ($search === undefined || $search === "") && !isCustom} {/if} {#each filteredThemes as theme} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)} {/if} {/each}
{/if} {#if filteredThemes.length == 0} {/if}