{#snippet heading()}
{author.displayName}
@{author.name}
• {ago(created_at)}
{#if author.lud16}
{author.lud16}
{/if}
{/snippet}
goto(`/e/${id}`)} class="space-y-2 dark:border-primary py-8 w-full text-left" class:border-b={!last} > {#if minimal} {@render heading()} {:else}
{@render heading()}
{/if}
{#each parts as { type, value }, i} {#if type === "text"} {value} {:else if type === "link"}
{:else if type.match(/^nostr:np(rofile|ub)$/)}
@{names[value.pubkey]}
{/if} {/each}
{#if zaps?.length}
{#each zaps as { amount, user }}
{amount}
{/each}
{/if} {#if !(minimal || user?.pubkey === pubkey)}
Zap
{/if}