{#if newKey} (newKey = null)} /> {/if} {#if secret} (secret = '')} /> {/if} {#if editKey} (editKey = null)} /> {/if} {#if deleteKey} handleDelete()} on:cancel={() => (deleteKey = null)} /> {/if}
{#if keys.length > 0} {#each keys as key, i} {#key key.id} {/key} {/each}
Name Created Action
{key.name} {new Date(key.createdAt).toLocaleDateString($locale, format)}
{/if}