{ rooms.length > 0 ? (
{ _t("Rooms") }
{ rooms.map(room => {
return {
onChange(checked, room);
}}
/>;
}) }
) : undefined }
{ spaces.length > 0 ? (
{ _t("Spaces") }
{ spaces.map(space => {
return {
onChange(checked, space);
}}
/>;
}) }
) : null }
{ dms.length > 0 ? (
{ _t("Direct Messages") }
{ dms.map(room => {
return {
onChange(checked, room);
}}
/>;
}) }
) : null }
{ spaces.length + rooms.length + dms.length < 1 ?
{ _t("No results") }
: undefined }