{"size": 932, "ext": "js", "max_stars_repo_path": "src/containers/Main/Main.asm.js", "max_stars_repo_name": "diegodoumecq/react-saga-starter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/containers/Main/Main.asm.js", "max_issues_repo_name": "diegodoumecq/react-saga-starter", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/containers/Main/Main.asm.js", "max_forks_repo_name": "diegodoumecq/react-saga-starter", "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": 32.1379310345, "max_line_length": 62, "alphanum_fraction": 0.6534334764}
import { compose, withProps } from 'recompose';

import LayoutAssembly from '../Layout/Layout.asm.js';
import LandingAssembly from '../Landing/Landing.asm.js';
import LoginAssembly from '../Login/Login.asm.js';
import RegisterAssembly from '../Register/Register.asm.js';
import DashboardAssembly from '../Dashboard/Dashboard.asm.js';
import NotFoundAssembly from '../NotFound/NotFound.asm.js';

import Main from './Main.jsx';

export default function MainAssembly(store) {
    const { dispatch } = store;

    return withProps({
        store,
        factories: {
            Layout: LayoutAssembly(store),
            Landing: LandingAssembly(store),
            Login: LoginAssembly(store),
            Register: RegisterAssembly(store),
            Dashboard: DashboardAssembly(store),
            NotFound: NotFoundAssembly(store)
        },
        
        clearError: () => dispatch({ type: 'CLEAR_ERROR' })
    })(Main);
}
