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