+ let still_waiting = null;
+ const answering_players = Object.keys(this.props.players_answering);;
+ if (answering_players.length) {
+ still_waiting = [
+ <p>
+ Still waiting for the following player
+ {answering_players.length > 1 ? 's' : ''}
+ :
+ </p>,
+ <ul>
+ {answering_players.map(player => {
+ return (
+ <li
+ key={player}
+ >
+ {player}
+ {this.props.players_answering[player] ?
+ <span className="typing"/> : null }
+ </li>
+ );
+ })}
+ </ul>
+ ];
+ }
+