import React, { Component } from 'react'; import BaseMenu from '../base/component'; import styles from '../styles.scss'; import { defineMessages, injectIntl } from 'react-intl'; import Toggle from '/imports/ui/components/switch/component'; import cx from 'classnames'; const intlMessages = defineMessages({ videoSectionTitle: { id: 'app.submenu.video.title', description: 'Heading for video submenu section', }, videoSourceLabel: { id: 'app.submenu.video.videoSourceLabel', description: 'Label for video source section', }, videoOptionLabel: { id: 'app.submenu.video.videoOptionLabel', description: 'default video source option label', }, videoQualityLabel: { id: 'app.submenu.video.videoQualityLabel', description: 'Label for video quality section', }, qualityOptionLabel: { id: 'app.submenu.video.qualityOptionLabel', description: 'default quality option label', }, participantsCamLabel: { id: 'app.submenu.video.participantsCamLabel', description: 'Label for participants cam section', }, }); class VideoMenu extends BaseMenu { constructor(props) { super(props); this.state = { settingsName: 'video', settings: props.settings, }; } render() { const { intl } = this.props; return (

{intl.formatMessage(intlMessages.videoSectionTitle)}

this.handleToggle('viewParticipantsWebcams')} ariaLabelledBy={'viewCamLabel'} ariaLabel={intl.formatMessage(intlMessages.participantsCamLabel)} />
); } } export default injectIntl(VideoMenu);