{
+ /**
+ * Initializes a new ParticipantsCount instance.
+ *
+ * @param {Object} props - The read-only properties with which the new
+ * instance is to be initialized.
+ */
+ constructor(props: Props) {
+ super(props);
+
+ this._onClick = this._onClick.bind(this);
+ }
+
+ _onClick: () => void;
+
+ /**
+ * Callback invoked to display {@code SpeakerStats}.
+ *
+ * @private
+ * @returns {void}
+ */
+ _onClick() {
+ const { dispatch, conference } = this.props;
+
+ dispatch(openDialog(SpeakerStats, { conference }));
+ }
+
+ /**
+ * Implements React's {@link PureComponent#render()}.
+ *
+ * @inheritdoc
+ * @returns {ReactElement}
+ */
+ render() {
+ return (
+
+
+ {this.props.count}
+
+
+
+ );
+ }
+}
+
+
+/**
+ * Maps (parts of) the Redux state to the associated props for the
+ * {@code ParticipantsCount} component.
+ *
+ * @param {Object} state - The Redux state.
+ * @private
+ * @returns {Props}
+ */
+function mapStateToProps(state) {
+ return {
+ conference: state['features/base/conference'].conference,
+ count: getParticipantCount(state)
+ };
+}
+
+export default connect(mapStateToProps)(ParticipantsCount);
diff --git a/react/features/conference/components/web/Subject.js b/react/features/conference/components/web/Subject.js
index edc618821a..d8790a3067 100644
--- a/react/features/conference/components/web/Subject.js
+++ b/react/features/conference/components/web/Subject.js
@@ -5,6 +5,8 @@ import React, { Component } from 'react';
import { connect } from '../../../base/redux';
import { isToolboxVisible } from '../../../toolbox';
+import ParticipantsCount from './ParticipantsCount';
+
/**
* The type of the React {@code Component} props of {@link Subject}.
*/
@@ -39,7 +41,8 @@ class Subject extends Component {
return (
- { _subject }
+
{ _subject }
+
);
}