mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-02 11:41:04 +05:30
82abe0a746
Split popups controllers into separate components Implemented storybooks for all project's popups
27 lines
759 B
TypeScript
27 lines
759 B
TypeScript
import React, { ComponentType } from 'react';
|
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
import { Router } from 'react-router-dom';
|
|
import { HelmetProvider } from 'react-helmet-async';
|
|
import { History } from 'history';
|
|
|
|
import { IntlProvider } from 'app/components/i18n';
|
|
import { Store } from 'app/reducers';
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
store: Store;
|
|
history: History;
|
|
}
|
|
|
|
const ContextProvider: ComponentType<Props> = ({ children, store, history }) => (
|
|
<HelmetProvider>
|
|
<ReduxProvider store={store}>
|
|
<IntlProvider>
|
|
<Router history={history}>{children}</Router>
|
|
</IntlProvider>
|
|
</ReduxProvider>
|
|
</HelmetProvider>
|
|
);
|
|
|
|
export default ContextProvider;
|