{"size": 337, "ext": "js", "max_stars_repo_path": "web/frontend/src/js/containers/Chart.js", "max_stars_repo_name": "tomal00/barometer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/frontend/src/js/containers/Chart.js", "max_issues_repo_name": "tomal00/barometer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/frontend/src/js/containers/Chart.js", "max_forks_repo_name": "tomal00/barometer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.0714285714, "max_line_length": 64, "alphanum_fraction": 0.706231454}
import ChartComponent from '../components/Chart'
import {connect} from 'react-redux'

const mapStateToProps = (state) => {
    if(state.chart.err) {
        alert(state.chart.err)
    }
    return { data: state.chart.data, offset: state.chart.offset}
}

const Chart = connect(mapStateToProps, null)(ChartComponent)

export default Chart
