2021-07-28 15:15:52 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
2021-09-14 09:30:37 +02:00
|
|
|
import { isAuthenticated } from '../../client/state/auth';
|
2021-07-28 15:15:52 +02:00
|
|
|
|
|
|
|
import Auth from '../templates/auth/Auth';
|
|
|
|
import Client from '../templates/client/Client';
|
|
|
|
|
|
|
|
function App() {
|
2021-11-19 08:50:34 +01:00
|
|
|
return isAuthenticated() ? <Client /> : <Auth />;
|
2021-07-28 15:15:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|