${isEmpty
? html`
${translateText("host_modal.empty_team")}
`
: repeat(
preview.players,
(p) => p.clientID ?? p.username,
(p) => {
const displayName = this.getClientDisplayName(p);
return html`
${displayName}
${p.clientID === this.lobbyCreatorClientID
? html`(${translateText("host_modal.host_badge")})`
: this.onKickPlayer
? html``
: html``}
`;
},
)}