mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-05 04:59:26 +05:30
29 lines
657 B
TypeScript
29 lines
657 B
TypeScript
import React from 'react';
|
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
import { Router } from 'react-router-dom';
|
|
import { HelmetProvider } from 'react-helmet-async';
|
|
import { IntlProvider } from 'app/components/i18n';
|
|
import { Store } from 'app/reducers';
|
|
|
|
function ContextProvider({
|
|
children,
|
|
store,
|
|
history,
|
|
}: {
|
|
children: React.ReactNode;
|
|
store: Store;
|
|
history: any;
|
|
}) {
|
|
return (
|
|
<HelmetProvider>
|
|
<ReduxProvider store={store}>
|
|
<IntlProvider>
|
|
<Router history={history}>{children}</Router>
|
|
</IntlProvider>
|
|
</ReduxProvider>
|
|
</HelmetProvider>
|
|
);
|
|
}
|
|
|
|
export default ContextProvider;
|