2017-08-14 12:53:31 +10:00
|
|
|
import { Provider } from 'react-redux';
|
2023-05-24 01:15:17 +10:00
|
|
|
|
2024-01-26 02:41:31 +11:00
|
|
|
import { fetchCustomEmojis } from 'mastodon/actions/custom_emojis';
|
|
|
|
import { hydrateStore } from 'mastodon/actions/store';
|
|
|
|
import { Router } from 'mastodon/components/router';
|
|
|
|
import Compose from 'mastodon/features/standalone/compose';
|
|
|
|
import initialState from 'mastodon/initial_state';
|
|
|
|
import { IntlProvider } from 'mastodon/locales';
|
|
|
|
import { store } from 'mastodon/store';
|
2017-08-14 12:53:31 +10:00
|
|
|
|
2017-10-28 02:04:44 +11:00
|
|
|
if (initialState) {
|
2017-08-14 12:53:31 +10:00
|
|
|
store.dispatch(hydrateStore(initialState));
|
|
|
|
}
|
|
|
|
|
2019-02-05 09:14:57 +11:00
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
|
2024-01-26 02:41:31 +11:00
|
|
|
const ComposeContainer = () => (
|
|
|
|
<IntlProvider>
|
|
|
|
<Provider store={store}>
|
|
|
|
<Router>
|
|
|
|
<Compose />
|
|
|
|
</Router>
|
|
|
|
</Provider>
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default ComposeContainer;
|