import React from 'react'; import PropTypes from 'prop-types'; import Box from '../box/box.jsx'; import Alert from '../../containers/alert.jsx'; import styles from './alerts.css'; const AlertsComponent = ({ alertsList, className, onCloseAlert }) => ( {alertsList.map((a, index) => ( ))} ); AlertsComponent.propTypes = { alertsList: PropTypes.arrayOf(PropTypes.object), className: PropTypes.string, onCloseAlert: PropTypes.func }; export default AlertsComponent;