cinny/src/app/pages/App.jsx

13 lines
273 B
React
Raw Normal View History

2021-07-28 16:15:52 +03:00
import React from 'react';
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() {
return isAuthenticated() ? <Client /> : <Auth />;
2021-07-28 16:15:52 +03:00
}
export default App;