text: import { connect } from 'react-redux';
  import KYCBaseComponent from './KYCBaseComponent';
  import { kycVerificationLevelsSelector } from '../../redux/selectors/kycLevelsSelectors';
  import { getUserConfig } from '../../redux/actions/userActions';
  
  const mapStateToProps = state => {
    const {
      verificationLevel,
      levelIncreaseStatus,
      kycConfig
    } = kycVerificationLevelsSelector(state);
  
    const highlightStyle = kycConfig.highlightStyle;
  
    return {
      verificationLevel,
      levelIncreaseStatus,
      kycConfig,
      highlightStyle,
      userId: state.user.userInfo.UserId,
      userName: state.user.userInfo.UserName
    };
  };
  
  const mapDispatchToProps = dispatch => ({
    getUserConfig: (userId, username) => dispatch(getUserConfig(userId, username))
  });
  
  const KYCBaseContainer = connect(
    mapStateToProps,
    mapDispatchToProps
  )(KYCBaseComponent);
  
  export default KYCBaseContainer;
  