import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withNamespaces } from 'react-i18next'; import Form from './Form'; import Card from '../../ui/Card'; class Encryption extends Component { handleFormSubmit = (values) => { this.props.setTlsConfig(values); }; render() { const { encryption, t } = this.props; const { processing, processingConfig, ...values } = encryption; return (
{encryption && !encryption.processing &&
}
); } } Encryption.propTypes = { setTlsConfig: PropTypes.func.isRequired, encryption: PropTypes.object.isRequired, t: PropTypes.func.isRequired, }; export default withNamespaces()(Encryption);