2017-08-13 22:53:31 -04:00
|
|
|
import { Provider } from 'react-redux';
|
2023-05-28 10:38:10 -04:00
|
|
|
|
2024-01-25 10:41:31 -05:00
|
|
|
import { fetchCustomEmojis } from 'flavours/glitch/actions/custom_emojis';
|
|
|
|
import { hydrateStore } from 'flavours/glitch/actions/store';
|
|
|
|
import { Router } from 'flavours/glitch/components/router';
|
|
|
|
import Compose from 'flavours/glitch/features/standalone/compose';
|
|
|
|
import initialState from 'flavours/glitch/initial_state';
|
|
|
|
import { IntlProvider } from 'flavours/glitch/locales';
|
|
|
|
import { store } from 'flavours/glitch/store';
|
2023-05-28 10:38:10 -04:00
|
|
|
|
2017-10-27 11:04:44 -04:00
|
|
|
if (initialState) {
|
2017-08-13 22:53:31 -04:00
|
|
|
store.dispatch(hydrateStore(initialState));
|
|
|
|
}
|
|
|
|
|
2019-02-10 15:54:43 -05:00
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
|
2024-01-25 10:41:31 -05:00
|
|
|
const ComposeContainer = () => (
|
|
|
|
<IntlProvider>
|
|
|
|
<Provider store={store}>
|
|
|
|
<Router>
|
|
|
|
<Compose />
|
|
|
|
</Router>
|
|
|
|
</Provider>
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default ComposeContainer;
|