{#if note} (e.key === 'Enter' || e.key === ' ') && (e.preventDefault(), onclick?.())} >

{note.title || note.content.split('\n')[0] || 'Untitled'}

{#if note.pinned} {/if}
{#if note.content}
{#key note.content} {/key}
{/if} {#if note.tags.size > 0} {@const tags = Array.from(note.tags)}
{#each tags.slice(0, 3) as tag (tag)} {tag} {/each} {#if tags.length > 3} +{tags.length - 3} {/if}
{/if}
{getRelativeTime(note.updatedAt)}
{/if}