import PropTypes from 'prop-types'; // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import * as Utils from 'utils/utils.jsx'; import DropdownSetting from './dropdown_setting.jsx'; import {FormattedMessage} from 'react-intl'; const SECTION_NONE = ( ); const SECTION_PLAIN = ( ); const SECTION_TLS = ( ); const SECTION_STARTTLS = ( ); const CONNECTION_SECURITY_HELP_TEXT_EMAIL = ( {SECTION_NONE} {SECTION_PLAIN} {SECTION_TLS} {SECTION_STARTTLS}
); const CONNECTION_SECURITY_HELP_TEXT_LDAP = ( {SECTION_NONE} {SECTION_TLS} {SECTION_STARTTLS}
); const CONNECTION_SECURITY_HELP_TEXT_WEBSERVER = ( {SECTION_NONE} {SECTION_TLS}
); export function ConnectionSecurityDropdownSettingEmail(props) { return ( } value={props.value} onChange={props.onChange} disabled={props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_EMAIL} /> ); } ConnectionSecurityDropdownSettingEmail.defaultProps = { }; ConnectionSecurityDropdownSettingEmail.propTypes = { value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired }; export function ConnectionSecurityDropdownSettingLdap(props) { return ( } value={props.value} onChange={props.onChange} disabled={props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_LDAP} /> ); } ConnectionSecurityDropdownSettingLdap.defaultProps = { }; ConnectionSecurityDropdownSettingLdap.propTypes = { value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired }; export function ConnectionSecurityDropdownSettingWebserver(props) { return ( } value={props.value} onChange={props.onChange} disabled={props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_WEBSERVER} /> ); } ConnectionSecurityDropdownSettingWebserver.defaultProps = { }; ConnectionSecurityDropdownSettingWebserver.propTypes = { value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, disabled: PropTypes.bool.isRequired };