{"size": 666, "ext": "js", "max_stars_repo_path": "test/src/utils/factory.js", "max_stars_repo_name": "riquito/react-treebeard", "max_stars_repo_stars_event_min_datetime": "2016-07-29T22:13:08.000Z", "max_stars_repo_stars_event_max_datetime": "2016-07-29T22:13:08.000Z", "max_issues_repo_path": "test/src/utils/factory.js", "max_issues_repo_name": "riquito/react-treebeard", "max_issues_repo_issues_event_min_datetime": "2021-05-09T04:49:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T09:56:07.000Z", "max_forks_repo_path": "test/src/utils/factory.js", "max_forks_repo_name": "riquito/react-treebeard", "max_forks_repo_forks_event_min_datetime": "2016-05-31T08:01:16.000Z", "max_forks_repo_forks_event_max_datetime": "2016-05-31T08:01:16.000Z"}
{"max_stars_count": 1, "max_issues_count": 5, "max_forks_count": 1, "avg_line_length": 26.64, "max_line_length": 78, "alphanum_fraction": 0.4174174174}
'use strict';

const React = require('react');

module.exports = {
    createDecorators: function(spec){
        spec = spec || {};
        return {
            Loading: (props) => {
                return spec.loading ? <spec.loading {...props}/> : <div/>;
            },
            Toggle: (props) => {
                return spec.toggle ? <spec.toggle {...props}/> : <div/>;
            },
            Header: (props) => {
                return spec.header ? <spec.header {...props}/> : <div/>;
            },
            Container: (props) => {
                return spec.container ? <spec.container {...props}/> : <div/>;
            }

        };
    },
};
