{ rooms.length > 0 ? (
{ _t("Rooms") }
rooms.slice(start, end).map(room =>
{
onChange(checked, room);
} : null}
/>,
)}
getChildCount={() => rooms.length}
/>
) : undefined }
{ spaces.length > 0 ? (
{ _t("Spaces") }
{ _t("Feeling experimental?") }
{ _t("You can add existing spaces to a space.") }
{ spaces.map(space => {
return
{
onChange(checked, space);
} : null}
/>;
}) }
) : null }
{ dms.length > 0 ? (
{ _t("Direct Messages") }
{ dms.map(room => {
return {
onChange(checked, room);
} : null}
/>;
}) }
) : null }
{ spaces.length + rooms.length + dms.length < 1 ?
{ _t("No results") }
: undefined }