"use strict"; const React = require("react"); const Layout = require("./layout"); function Room({ room }) { return (
{room.name}
{room.num_joined_members} users
{room.canonical_alias}
{room.topic}
); } module.exports = function Rooms({ rooms, nextBatchUrl, previousBatchUrl }) { return (
{(previousBatchUrl != null) ? << Previous : null } {(previousBatchUrl != null && nextBatchUrl != null) ? " | " : null } {(nextBatchUrl != null) ? Next >> : null }
{rooms.map((room) => { return ; })}
); };