import React from "react"
import PropTypes from "prop-types"
import { List } from "immutable"
import { connect } from "react-redux"
import { Notification } from "./notification"
const NotificationsConnected = ({ notifications }) => {
return (
{notifications.map((el) => (
))}
)
}
NotificationsConnected.propTypes = {
notifications: PropTypes.instanceOf(List),
}
const mapStateToProps = (state) => ({
notifications: state.notifications,
});
export const Notifications = connect(mapStateToProps)(NotificationsConnected);