{"size": 683, "ext": "js", "max_stars_repo_path": "src/components/Results/results.js", "max_stars_repo_name": "linux-devops-opensource/pumba-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Results/results.js", "max_issues_repo_name": "linux-devops-opensource/pumba-ui", "max_issues_repo_issues_event_min_datetime": "2021-02-09T22:37:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-09T22:37:24.000Z", "max_forks_repo_path": "src/components/Results/results.js", "max_forks_repo_name": "linux-devops-opensource/pumba-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 20.696969697, "max_line_length": 72, "alphanum_fraction": 0.5373352855}
import React from 'react';
import { connect } from "react-redux";
import Stepper from '../Stepper/stepper';
import ResultsError from './resultsError';

const Results = (props) => {
    if (props.processResults['finished']) {
        return (
            "finished"
        )
    }  
    else if (Object.keys(props.processResults['failed']).length != 0 ) {
        return (
            <ResultsError/>
        )
    }
    else {
        return (
            <div>
                <Stepper/>
            </div>
        )
    }
}

const mapStateToProps = (state) => {
    return {
        processResults: state.processResults
    };
};


export default connect(mapStateToProps)(Results)