{"size": 625, "ext": "js", "max_stars_repo_path": "scripts/mixins/HeaderMixin.js", "max_stars_repo_name": "zupzup/reactgym", "max_stars_repo_stars_event_min_datetime": "2015-05-08T07:20:07.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-19T05:14:48.000Z", "max_issues_repo_path": "scripts/mixins/HeaderMixin.js", "max_issues_repo_name": "zupzup/reactgym", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/mixins/HeaderMixin.js", "max_forks_repo_name": "zupzup/reactgym", "max_forks_repo_forks_event_min_datetime": "2015-06-07T08:43:11.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-28T09:36:59.000Z"}
{"max_stars_count": 43, "max_issues_count": null, "max_forks_count": 17, "avg_line_length": 23.1481481481, "max_line_length": 80, "alphanum_fraction": 0.4848}
'use strict';

import HeaderStateActionCreators from '../actions/HeaderStateActionCreators.js';

let HeaderMixin = {
    componentDidMount() {
        let self = this;
        HeaderStateActionCreators.setConfig({
            back: true,
            title: {
                visible: true,
                text: self.header.title
            },
            add: {
                visible: true,
                handler: self.header.add
            },
            editMode: {
                visible: true,
                handler: self.header.edit.bind(self)
            }
        });
    }
};

module.exports = HeaderMixin;
