extends Component {}
+
+/**
+ * Maps redux actions to the props of the component.
+ *
+ * @param {Function} dispatch - The redux action {@code dispatch} function.
+ * @returns {{
+ * _onSendMessage: Function,
+ * _onToggleChat: Function
+ * }}
+ * @private
+ */
+export function _mapDispatchToProps(dispatch: Dispatch<*>) {
+ return {
+ /**
+ * Toggles the chat window.
+ *
+ * @returns {Function}
+ */
+ _onToggleChat() {
+ dispatch(toggleChat());
+ },
+
+ /**
+ * Sends a text message.
+ *
+ * @private
+ * @param {string} text - The text message to be sent.
+ * @returns {void}
+ * @type {Function}
+ */
+ _onSendMessage(text: string) {
+ dispatch(sendMessage(text));
+ }
+ };
+}
+
+/**
+ * Maps (parts of) the redux state to {@link Chat} React {@code Component}
+ * props.
+ *
+ * @param {Object} state - The redux store/state.
+ * @private
+ * @returns {{
+ * _isOpen: boolean,
+ * _messages: Array