{#if yearFrom !== null && yearTo !== null}
{m.conv_summary({ count: documents.length, yearFrom, yearTo })}
{:else}
{documents.length}
{/if} {#if canWrite}
{m.conv_new_doc_link()}
{/if}
{#each enrichedDocuments as { doc, year, showYearDivider } (doc.id)} {#if showYearDivider}
{year}
{/if} {@const isRight = doc.sender?.id === senderId}
{#if doc.sender} {doc.sender.firstName[0]}{doc.sender.lastName[0]} {:else} ? {/if}
{doc.title || doc.originalFilename}
{doc.documentDate ? formatDate(doc.documentDate) : '—'}
{#if doc.location}
• {doc.location}
{/if}
{/each}