{#if annotationItem.$kind === 'textEncapsulation'}
{annotationItem.text}
{:else if annotationItem.$kind === 'linkableText'}
{@html sanitizeHtml(
formatStyledText(
annotationItem.linkableText.styledText.rawText,
),
)}
{:else if annotationItem.$kind === 'artwork'}
{#if isSystemImageArtwork(annotationItem.artwork)}
{/if}
{:else if annotationItem.$kind === 'textPair'}
{annotationItem.leadingText}
{annotationItem.trailingText}
{:else if annotationItem.$kind === 'button'}
{annotationItem.action.title}
{:else if annotationItem.$kind === 'spacer'}
{/if}
{/each}