import React from 'react'; import Toggle from '/imports/ui/components/common/switch/component'; import { defineMessages, injectIntl } from 'react-intl'; import BaseMenu from '../base/component'; import Styled from './styles'; const intlMessages = defineMessages({ dataSavingLabel: { id: 'app.settings.dataSavingTab.label', description: 'label for data savings tab', }, webcamLabel: { id: 'app.settings.dataSavingTab.webcam', description: 'webcam toggle', }, screenShareLabel: { id: 'app.settings.dataSavingTab.screenShare', description: 'screenshare toggle', }, dataSavingDesc: { id: 'app.settings.dataSavingTab.description', description: 'description of data savings tab', }, }); class DataSaving extends BaseMenu { constructor(props) { super(props); this.state = { settingsName: 'dataSaving', settings: props.settings, }; } render() { const { intl, showToggleLabel, displaySettingsStatus, isScreenSharingEnabled, isVideoEnabled, } = this.props; const { viewParticipantsWebcams, viewScreenshare } = this.state.settings; return (