content: import React, { Component } from 'react';
  import { reduxForm } from 'redux-form';
  import SurveyForm from './SurveyForm';
  import SurveyFormReview from './SurveyFormReview';
  
  const surveyStyle = {
    marginTop: '3rem',
  };
  
  class SurveyNew extends Component {
    state = { showFormReview: false };
  
    renderContent() {
      if (this.state.showFormReview) {
        return <SurveyFormReview
          onCancel={() => this.setState({ showFormReview: false })}
        />;
      }
  
      return (
        <SurveyForm
          onSurveySubmit={() => this.setState({ showFormReview: true })}
        />
      );
    }
  
    render() {
      return (
        <div style={surveyStyle}>
          {this.renderContent()}
        </div>
      );
    }
  }
  
  export default reduxForm({
    form: 'surveyForm',
  })(SurveyNew);
  