{#if persons.length > 0}
{#each persons as ctx, i (ctx.id)} {@const meta = ctx.meta as PersonMeta | null} {@const subType = (meta?.personSubType ?? 'contact') as PersonSubType} {@const showBirthday = subType === 'family' || subType === 'employee' || subType === 'colleague'} {@const showTenure = subType === 'employee' && !!meta?.joinDate} {@const hasInfo = (showBirthday && !!meta?.birthday) || showTenure}
{#if sortable}
{/if}
{/each}
{:else}
Keine Personen vorhanden.
{/if} {#if confirmDeleteId} confirmDeleteId = null} /> {/if}