mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-24 22:23:06 +01:00
19 lines
382 B
JavaScript
19 lines
382 B
JavaScript
import React from 'react';
|
|
import {
|
|
BrowserRouter,
|
|
} from 'react-router-dom';
|
|
|
|
import { isAuthenticated } from '../../client/state/auth';
|
|
|
|
import Auth from '../templates/auth/Auth';
|
|
import Client from '../templates/client/Client';
|
|
|
|
function App() {
|
|
return (
|
|
<BrowserRouter>
|
|
{ isAuthenticated() ? <Client /> : <Auth />}
|
|
</BrowserRouter>
|
|
);
|
|
}
|
|
|
|
export default App;
|