mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
18 lines
467 B
TypeScript
18 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;
|