)
}
if (
!allowLiveEmbeds &&
LIVE_ACTIVITY_KINDS.includes(finalEvent.kind as (typeof LIVE_ACTIVITY_KINDS)[number])
) {
return
}
// Check if this event has bookstr tags (at least "book" tag)
const bookMetadata = extractBookMetadata(finalEvent)
const hasBookstrTags = !!bookMetadata.book
// If it has bookstr tags, render directly as bookstr content (no need to search)
if (hasBookstrTags) {
return (
e.stopPropagation()}
>
)
}
// NIP-52 calendar notes (kinds 31922 / 31923) – render as calendar card
if (isCalendarEventKind(finalEvent.kind)) {
return (
e.stopPropagation()}
>
)
}
if (!isRenderableNoteKind(finalEvent.kind)) {
return (