{#if href} {#if loading} {:else} {/if} {:else} dispatch('click', e)} class={buttonClass} type={submit ? 'submit' : 'button'} > {#if loading} {:else} {/if} {/if}