2023-03-06 18:15:46 +03:00
|
|
|
import React from 'react';
|
2022-12-05 23:47:11 +03:00
|
|
|
import Inbox from './pages/inbox/Inbox';
|
|
|
|
import Contacts from './pages/Contacts';
|
|
|
|
import Insights from './pages/Insights';
|
2022-12-05 00:59:30 +03:00
|
|
|
import AppLayout from './layout/AppLayout';
|
2022-12-02 14:39:15 +03:00
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2022-12-01 17:58:08 +03:00
|
|
|
|
|
|
|
function App() {
|
2023-03-06 18:15:46 +03:00
|
|
|
const user = {
|
|
|
|
id: 1,
|
|
|
|
email: 'charles@twenty.com',
|
|
|
|
first_name: 'Charles',
|
|
|
|
last_name: 'Bochet',
|
|
|
|
};
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2022-12-01 17:58:08 +03:00
|
|
|
return (
|
2023-02-03 21:59:00 +03:00
|
|
|
<div>
|
2023-03-06 18:15:46 +03:00
|
|
|
{
|
|
|
|
<AppLayout user={user}>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<Inbox />} />
|
|
|
|
<Route path="/contacts" element={<Contacts />} />
|
|
|
|
<Route path="/insights" element={<Insights />} />
|
|
|
|
</Routes>
|
|
|
|
</AppLayout>
|
|
|
|
}
|
2023-02-03 21:59:00 +03:00
|
|
|
</div>
|
2022-12-01 17:58:08 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|