{`Sort ${sortDirUp ? 'up' : 'down'}`}

{#key mentions} {#each mentions as mention} {@const [wmProperty, borderColor, textColor, tooltipColor] = { 'in-reply-to': ['💬 Replied', 'border-primary/50', 'text-primary', 'tooltip-primary'], 'like-of': ['❤️ liked', 'border-secondary/50', 'text-secondary', 'tooltip-secondary'], 'repost-of': ['🔄 Reposted', 'border-accent/50', 'text-accent', 'tooltip-accent'], 'bookmark-of': ['⭐️ bookmarked', 'border-neutral/50', 'text-neutral', 'tooltip-neutral'], 'mention-of': ['💬 mentioned', 'border-base-300/50', 'text-base-content', 'tooltip-base-content'], rsvp: [ `📅 RSVPed ${ mention.rsvp && { yes: '✅', no: '❌', interested: '💡', maybe: '💭' }[mention.rsvp] }`, 'border-warning/50', 'text-warning', 'tooltip-warning' ] }[mention['wm-property']]} {#if mention.url !== null}
{#if mention?.author?.photo} {mention.author?.name {/if}

{#if mention?.author?.url} {mention.author?.name ?? new URL(mention.url).host} {:else} {mention?.author?.name ?? new URL(mention.url).host} {/if} {wmProperty} this post on {mention.published ? mention.published.slice(0, 10) : mention['wm-received'].slice(0, 10)}

{#if mention.content}

{@html mention.content?.html ?? mention.content?.text}

{/if}
{/if} {/each} {/key} {#if loaded === true} {#if end !== true} {:else if config?.form !== true}
END
{/if} {:else}
{/if}