_renderFileSharingContent() {
        if (!this.props.fileRecordingsServiceSharingEnabled) {
            return null;
        }

        const {
            _dialogStyles,
            _styles: styles,
            isValidating,
            onSharingSettingChanged,
            selectedRecordingService,
            sharingSetting,
            t
        } = this.props;

        const controlDisabled = selectedRecordingService !== RECORDING_TYPES.JITSI_REC_SERVICE;
        let mainContainerClasses = 'recording-header recording-header-line';

        if (controlDisabled) {
            mainContainerClasses += ' recording-switch-disabled';
        }

        return (
            <Container
                className = { mainContainerClasses }
                key = 'fileSharingSetting'
                style = { [
                    styles.header,
                    _dialogStyles.topBorderContainer,
                    controlDisabled ? styles.controlDisabled : null
                ] }>
                <Container className = 'recording-icon-container'>
                    <Image
                        className = 'recording-icon'
                        src = { ICON_SHARE }
                        style = { styles.recordingIcon } />
                </Container>
                <Text
                    className = 'recording-title'
                    style = {{
                        ..._dialogStyles.text,
                        ...styles.title
                    }}>
                    { t('recording.fileSharingdescription') }
                </Text>
                <Switch
                    className = 'recording-switch'
                    disabled = { controlDisabled || isValidating }
                    onValueChange
                        = { onSharingSettingChanged }
                    style = { styles.switch }
                    trackColor = {{ false: ColorPalette.lightGrey }}
                    value = { !controlDisabled && sharingSetting } />
            </Container>
        );
    }
/**
     * Renders the file recording service sharing options, if enabled.
     *
     * @returns {React$Component}
     */
Renders the file recording service sharing options, if enabled.
@returns {React$Component}
Renders the file recording service sharing options if enabled . @returns { React$Component }
_renderFileSharingContent() {
        if (!this.props.fileRecordingsServiceSharingEnabled) {
            return null;
        }
        const {
            _dialogStyles,
            _styles: styles,
            isValidating,
            onSharingSettingChanged,
            selectedRecordingService,
            sharingSetting,
            t
        } = this.props;
        const controlDisabled = selectedRecordingService !== RECORDING_TYPES.JITSI_REC_SERVICE;
        let mainContainerClasses = 'recording-header recording-header-line';
        if (controlDisabled) {
            mainContainerClasses += ' recording-switch-disabled';
        }
        return (
            <Container
                className = { mainContainerClasses }
                key = 'fileSharingSetting'
                style = { [
                    styles.header,
                    _dialogStyles.topBorderContainer,
                    controlDisabled ? styles.controlDisabled : null
                ] }>
                <Container className = 'recording-icon-container'>
                    <Image
                        className = 'recording-icon'
                        src = { ICON_SHARE }
                        style = { styles.recordingIcon } />
                </Container>
                <Text
                    className = 'recording-title'
                    style = {{
                        ..._dialogStyles.text,
                        ...styles.title
                    }}>
                    { t('recording.fileSharingdescription') }
                </Text>
                <Switch
                    className = 'recording-switch'
                    disabled = { controlDisabled || isValidating }
                    onValueChange
                        = { onSharingSettingChanged }
                    style = { styles.switch }
                    trackColor = {{ false: ColorPalette.lightGrey }}
                    value = { !controlDisabled && sharingSetting } />
            </Container>
        );
    }
_renderFileSharingContent ( ) { if ( ! this . props . fileRecordingsServiceSharingEnabled ) { return null ; } const { _dialogStyles , _styles : styles , isValidating , onSharingSettingChanged , selectedRecordingService , sharingSetting , t } = this . props ; const controlDisabled = selectedRecordingService !== RECORDING_TYPES . JITSI_REC_SERVICE ; let mainContainerClasses = 'recording-header recording-header-line' ; if ( controlDisabled ) { mainContainerClasses += ' recording-switch-disabled' ; } return ( < Container className = { mainContainerClasses } key = 'fileSharingSetting' style = { [ styles . header , _dialogStyles . topBorderContainer , controlDisabled ? styles . controlDisabled : null ] } > < Container className = 'recording-icon-container' > < Image className = 'recording-icon' src = { ICON_SHARE } style = { styles . recordingIcon } / > < / Container > < Text className = 'recording-title' style = { { ... _dialogStyles . text , ... styles . title } } > { t ( 'recording.fileSharingdescription' ) } < / Text > < Switch className = 'recording-switch' disabled = { controlDisabled || isValidating } onValueChange = { onSharingSettingChanged } style = { styles . switch } trackColor = { { false : ColorPalette . lightGrey } } value = { ! controlDisabled && sharingSetting } / > < / Container > ) ; }
Renders the file recording service sharing options, if enabled.
Renders the file recording service sharing options if enabled .