mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
19 lines
467 B
TypeScript
19 lines
467 B
TypeScript
import { History } from '@remix-run/router';
|
|
import React from 'react';
|
|
|
|
import { HistoryRouter } from './components/HistoryRouter';
|
|
import { ApiProvider } from './hooks/useApi';
|
|
import AppRoutes from './routes/index';
|
|
|
|
const App = ({ history }: { history: History }) => {
|
|
return (
|
|
<ApiProvider>
|
|
<HistoryRouter history={history}>
|
|
<AppRoutes />
|
|
</HistoryRouter>
|
|
</ApiProvider>
|
|
);
|
|
};
|
|
|
|
export default App;
|