import React from 'react'; import { useSelector, shallowEqual } from 'react-redux'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import { TOAST_TRANSITION_TIMEOUT } from '../../helpers/constants'; import Toast from './Toast'; import './Toast.css'; import { RootState } from '../../initialState'; const Toasts = () => { const toasts = useSelector((state: RootState) => state.toasts, shallowEqual); return ( {toasts.notices?.map((toast: any) => { const { id } = toast; return ( ); })} ); }; export default Toasts;