{#if newKey} handleCreate(detail)} on:cancel={() => (newKey = null)} /> {/if} {#if secret} (secret = '')} /> {/if} {#if editKey} handleUpdate(detail)} on:cancel={() => (editKey = null)} /> {/if}
{#if keys.length > 0} {#each keys as key, index} {#key key.id} {/key} {/each}
{$t('name')} {$t('created')} {$t('action')}
{key.name} {new Date(key.createdAt).toLocaleDateString($locale, format)} (editKey = key)} /> handleDelete(key)} />
{/if}