{#if open}
{#if customImage}
{#if customImage.endsWith('.svg')} {@html customImage} {:else}
{/if}
{:else if icon}
{icon}
{/if}
{message}
{#if buttons.length > 0}
{#each buttons as button} {#if button.href}
{#if button.icon}
{button.icon}
{/if}
{button.text}
{:else}
handleButtonClick(button)} > {#if button.icon}
{button.icon}
{/if}
{button.text}
{/if} {/each}
{/if}
{/if}