import React, { PureComponent } from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; export default class MultipleNotifications extends PureComponent { static defaultProps = { children: [], classNames: [], }; static propTypes = { children: PropTypes.array, classNames: PropTypes.array, }; state = { showAll: false, }; render() { const { showAll } = this.state; const { children, classNames } = this.props; const childrenToRender = children.filter(Boolean); if (childrenToRender.length === 0) { return null; } return (