{#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} {/if} {@const isRight = doc.sender?.id === senderId}

{doc.title || doc.originalFilename}

{doc.documentDate ? formatDate(doc.documentDate) : '—'} {#if doc.location} • {doc.location} {/if}
{/each}