goto(`/doc/${doc.id}`)} onkeydown={(e) => e.key === 'Enter' && goto(`/doc/${doc.id}`)} draggable="true" ondragstart={(e) => e.dataTransfer?.setData('text/plain', JSON.stringify({ type: 'document', id: doc.id }))} >
{#if doc.thumbnail_svg}
Thumbnail
{:else}
{/if}

{doc.title}

{#if activeMenu === doc.id}
{/if}

Edited {new Date(doc.updated_at.endsWith('Z') ? doc.updated_at : doc.updated_at + 'Z').toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' })}