{#if Component}
{#if state.closeButton} {#if isFunction(state.closeButton)}
{:else}
{/if} {/if}
{/if}