{#if isOpen}
{#if title || showCloseButton}
{#if title}
{title}
{:else}
{/if} {#if showCloseButton}
{/if}
{/if}
{@render children()}
{#if footer} {/if}
{/if}