23 lines
503 B
JavaScript
23 lines
503 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getTlsStatus, setTlsConfig, validateTlsConfig } from '../actions/encryption';
|
|
import Encryption from '../components/Settings/Encryption';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { encryption } = state;
|
|
const props = {
|
|
encryption,
|
|
};
|
|
return props;
|
|
};
|
|
|
|
const mapDispatchToProps = {
|
|
getTlsStatus,
|
|
setTlsConfig,
|
|
validateTlsConfig,
|
|
};
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps,
|
|
)(Encryption);
|