{"size": 1236, "ext": "js", "max_stars_repo_path": "src/components/layout/index.js", "max_stars_repo_name": "lucascostadevrobot/eco-ponto-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/layout/index.js", "max_issues_repo_name": "lucascostadevrobot/eco-ponto-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/layout/index.js", "max_forks_repo_name": "lucascostadevrobot/eco-ponto-admin", "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": 34.3333333333, "max_line_length": 170, "alphanum_fraction": 0.4012944984}
import React from 'react';
import { Link, Redirect, Route, Switch } from 'react-router-dom';
import Sidebar from './../sidebar';
import Navbar from './../navbar';
import urls from '../../urls';

export default class Layout extends React.Component {



    render() {
        return (
            <div>
                <Navbar />
                <div className="container-fluid">
                    <div className="row">
                        <Sidebar />


                        <main role="main" className="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
                            <React.Suspense fallback={<div>Aguarde ...</div>}>
                                <Switch>
                                    {urls.map((url, idx) => {
                                        return url.component ? (<Route key={idx} path={url.path} exact={url.exact} name={url.name} component={url.component} />) : (null);
                                    })}
                                    <Redirect from='/adm' to='/adm/dashboard' />
                                </Switch>

                            </React.Suspense>
                        </main>
                    </div>
                </div>
            </div>
        );
    }
}