{#if isLoading}
{:else if user && subscription}
{subscription.id ? $t('subscriptions.edit') : $t('subscriptions.create')}
{#if form?.errors} {#each form?.errors as error (error.id)}
{$t(error.field) + ': ' + $t(error.key)}
{/each} {/if}
0} />
0} />
0} />
0} />
0} />
0} />
{#if isUpdating}
{:else}
dispatch('cancel')}> {$t('cancel')}
{$t('confirm')}
{/if}
{/if}