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