{#if filteredModalAlerts.length > 0 && currentModalAlert && !page.url.pathname.includes('console/onboarding')} {@const shouldShowUpgrade = showUpgrade()}
{#key currentModalAlert.id}
{#if $app.themeInUse === 'dark'} {currentModalAlert.title} {:else} {currentModalAlert.title} {/if} {#if filteredModalAlerts.length > 1}
Feature {currentIndex + 1} of {filteredModalAlerts.length}
{/if}

{currentModalAlert.title}

{#if currentModalAlert.isHtml} {@html currentModalAlert.message} {:else} {currentModalAlert.message} {/if}
{#if currentModalAlert.learnMore} {/if}
{/key}
{#if openModalOnMobile}
{#key currentModalAlert.id}
{#if $app.themeInUse === 'dark'} {currentModalAlert.title} {:else} {currentModalAlert.title} {/if} {#if filteredModalAlerts.length > 1}
Feature {currentIndex + 1} of {filteredModalAlerts.length}
{/if}

{currentModalAlert.title}

{#if currentModalAlert.isHtml} {@html currentModalAlert.message} {:else} {currentModalAlert.message} {/if}
{#if currentModalAlert.learnMore} {/if}
{/key}
{:else} {@const mobileConfig = getMobileWindowConfig()}
{ if (mobileConfig.cta) { // navigate manually! triggerMobileWindowLink(); } else { openModalOnMobile = true; } }}>

{mobileConfig.title}

{#if mobileConfig.html} {@html mobileConfig.message} {:else} {mobileConfig.message} {/if}
{/if}
{/if}