1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/RootApp.tsx

24 lines
787 B
TypeScript
Raw Normal View History

2022-10-28 01:09:59 -04:00
import { History } from '@remix-run/router';
2024-01-05 11:23:33 -05:00
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
2023-09-30 01:17:37 -04:00
import React from 'react';
2022-10-28 01:09:59 -04:00
import { ApiProvider } from 'hooks/useApi';
import { WebConfigProvider } from 'hooks/useWebConfig';
2024-01-05 11:23:33 -05:00
import { queryClient } from 'utils/query/queryClient';
2022-10-28 01:09:59 -04:00
import RootAppRouter from 'RootAppRouter';
2023-04-27 17:04:33 -04:00
const RootApp = ({ history }: Readonly<{ history: History }>) => (
<QueryClientProvider client={queryClient}>
<ApiProvider>
<WebConfigProvider>
<RootAppRouter history={history} />
</WebConfigProvider>
</ApiProvider>
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);
2022-10-28 01:09:59 -04:00
2023-04-27 17:04:33 -04:00
export default RootApp;