{"size": 1351, "ext": "js", "max_stars_repo_path": "resources/js/layout/LayoutContent.js", "max_stars_repo_name": "jsaubon/graphQL_Practice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/layout/LayoutContent.js", "max_issues_repo_name": "jsaubon/graphQL_Practice", "max_issues_repo_issues_event_min_datetime": "2021-02-02T19:36:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T06:46:25.000Z", "max_forks_repo_path": "resources/js/layout/LayoutContent.js", "max_forks_repo_name": "jsaubon/graphQL_Practice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 33.775, "max_line_length": 79, "alphanum_fraction": 0.4515173945}
import React, { useEffect, useContext } from "react";
import { Route, Switch, Redirect } from "react-router-dom";
import { Layout, Breadcrumb } from "antd";
import LayoutHeader from "./LayoutHeader";
import LayoutFooter from "./LayoutFooter";
import LeadsPage from "../pages/LeadsPage";
import TasksPage from "../pages/TasksPage";

const LayoutContent = () => {
    const { Header, Footer, Content } = Layout;

    return (
        <div>
            <Layout>
                <LayoutHeader />
                <Content
                    className="site-layout"
                    style={{ padding: "0 50px", marginTop: 64 }}
                >
                    <div
                        className="site-layout-background"
                        style={{ padding: 24, minHeight: 380 }}
                    >
                        <Switch>
                            <Route exact path="/leads" component={LeadsPage} />
                            <Route exact path="/tasks" component={TasksPage} />
                            <Route path="/" exact>
                                <Redirect to="/leads" />
                            </Route>
                        </Switch>
                    </div>
                </Content>
                <LayoutFooter />
            </Layout>
        </div>
    );
};

export default LayoutContent;
