{"size": 1059, "ext": "js", "max_stars_repo_path": "src/component/main/main.js", "max_stars_repo_name": "social-media-asac/vibin-react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/component/main/main.js", "max_issues_repo_name": "social-media-asac/vibin-react", "max_issues_repo_issues_event_min_datetime": "2021-07-28T20:19:42.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-28T20:19:42.000Z", "max_forks_repo_path": "src/component/main/main.js", "max_forks_repo_name": "social-media-asac/vibin-react", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 36.5172413793, "max_line_length": 99, "alphanum_fraction": 0.5930122757}
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
// import Header from '../header/headar';
import LogInPage from '../../pages/login';
import ProfilePage from '../../pages/profile/profile'
import Home  from '../../pages/home/home';
import RegisterPage from '../../pages/register';
import Setting from '../setting/setting';
// import Footer from '../footer/footer'
const Main = (props) =>{
    return (
      <Router>
        <>
        {/* <Header/> */}
        <Switch>
          <Route exact path="/" component={LogInPage}  > <LogInPage /> </Route>
         
          <Route  exact path="/profile/:username" component={ProfilePage} ><ProfilePage /> </Route>
          <Route  exact path="/ahmad" component={Home} > <Home /></Route>
          <Route exact path="/setting" component={Setting}><Setting/></Route>
          <Route  exact path="/register" component={RegisterPage} > <RegisterPage/> </Route>
        </Switch>
        {/* <Footer/> */}
        </>

      </Router>
    )
}
export default Main;