{#if link}
{:else}
click('click', e)} type="button" class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {buttonColors[ color ]} disabled:opacity-50 disabled:pointer-events-none" {disabled} > {#if loading}
{:else}
{/if}
{/if}