2022-10-27 22:09:59 -07:00
|
|
|
import { History } from '@remix-run/router';
|
2022-11-18 10:55:46 -07:00
|
|
|
import React from 'react';
|
2022-10-27 22:09:59 -07:00
|
|
|
|
|
|
|
import { HistoryRouter } from './components/HistoryRouter';
|
2022-11-18 10:55:46 -07:00
|
|
|
import { ApiProvider } from './hooks/useApi';
|
2022-10-27 22:09:59 -07:00
|
|
|
import AppRoutes from './routes/index';
|
|
|
|
|
2022-11-30 12:18:49 -07:00
|
|
|
const App = ({ history }: { history: History }) => {
|
2022-10-27 22:09:59 -07:00
|
|
|
return (
|
2022-11-30 12:18:49 -07:00
|
|
|
<ApiProvider>
|
2022-11-18 10:55:46 -07:00
|
|
|
<HistoryRouter history={history}>
|
|
|
|
<AppRoutes />
|
|
|
|
</HistoryRouter>
|
|
|
|
</ApiProvider>
|
2022-10-27 22:09:59 -07:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|