{"size": 497, "ext": "js", "max_stars_repo_path": "src/model/AppFactory.js", "max_stars_repo_name": "jser/report-editor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/model/AppFactory.js", "max_issues_repo_name": "jser/report-editor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/model/AppFactory.js", "max_forks_repo_name": "jser/report-editor", "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": 27.6111111111, "max_line_length": 76, "alphanum_fraction": 0.6096579477}
// MIT © 2017 azu
"use strict";
import App from "./App";
import Draft from "./Draft/Draft";
import Issues from "./Issues/Issues";
import IssueItemFactory from "./IssueItem/IssueItemFactory";
export default class AppFactory {
    /**
     * @param {Object[]} items
     */
    static create({items}) {
        const issueItems = items.map(item => IssueItemFactory.create(item));
        return new App({
            draft: new Draft(),
            issues: new Issues(issueItems)
        });
    }
}