2018-05-13 08:57:47 +02:00
|
|
|
import React from 'react';
|
2018-06-03 13:15:52 +02:00
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2018-06-03 20:12:40 +02:00
|
|
|
import './App.scss';
|
2018-05-13 08:57:47 +02:00
|
|
|
|
2018-12-17 20:24:31 +01:00
|
|
|
const App = (MainHeader, Home, MenuLayout, CreateServer) => () => (
|
2018-12-17 20:03:36 +01:00
|
|
|
<div className="container-fluid app-container">
|
|
|
|
<MainHeader />
|
2018-06-03 20:12:40 +02:00
|
|
|
|
2018-12-17 20:03:36 +01:00
|
|
|
<div className="app">
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/server/create" component={CreateServer} />
|
|
|
|
<Route exact path="/" component={Home} />
|
|
|
|
<Route path="/server/:serverId" component={MenuLayout} />
|
|
|
|
</Switch>
|
2018-08-25 23:39:27 +02:00
|
|
|
</div>
|
2018-12-17 20:03:36 +01:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|