diff options
Diffstat (limited to 'app/javascript/mastodon/features/notifications/containers/notification_container.js')
-rw-r--r-- | app/javascript/mastodon/features/notifications/containers/notification_container.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/notifications/containers/notification_container.js b/app/javascript/mastodon/features/notifications/containers/notification_container.js new file mode 100644 index 000000000..786222967 --- /dev/null +++ b/app/javascript/mastodon/features/notifications/containers/notification_container.js @@ -0,0 +1,15 @@ +import { connect } from 'react-redux'; +import { makeGetNotification } from '../../../selectors'; +import Notification from '../components/notification'; + +const makeMapStateToProps = () => { + const getNotification = makeGetNotification(); + + const mapStateToProps = (state, props) => ({ + notification: getNotification(state, props.notification, props.accountId), + }); + + return mapStateToProps; +}; + +export default connect(makeMapStateToProps)(Notification); |