mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-11 02:37:22 +03:00
19 lines
525 B
JavaScript
19 lines
525 B
JavaScript
import React from 'react';
|
|
import { Route, Switch } from 'react-router-dom';
|
|
import './App.scss';
|
|
|
|
const App = (MainHeader, Home, MenuLayout, CreateServer) => () => (
|
|
<div className="container-fluid app-container">
|
|
<MainHeader />
|
|
|
|
<div className="app">
|
|
<Switch>
|
|
<Route exact path="/server/create" component={CreateServer} />
|
|
<Route exact path="/" component={Home} />
|
|
<Route path="/server/:serverId" component={MenuLayout} />
|
|
</Switch>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default App;
|