{selectedNpcs.length > 0 ? (
selectedNpcs.map((npc) => {
const safeHtml = sanitizeSceneDescriptionHtml(npc.description);
const npcRelations = relationsByNpcId.get(npc.id) ?? [];
return (
{npc.name}
{safeHtml ? (
) : (
{t('npcs.descriptionEmpty')}
)}
{npcRelations.length > 0 ? (
{t('npcs.relations')}
{npcRelations.map((r) => (
{r.text}
))}
) : null}
);
})
) : (
{npcs.length === 0 ? t('npcs.windowEmpty') : t('npcs.selectToShow')}
)}