import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import classNames from 'classnames'; export default @injectIntl class TimelineQueueButtonHeader extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, count: PropTypes.number, message: PropTypes.object.isRequired, intl: PropTypes.object.isRequired, }; static defaultProps = { count: 0, }; render() { const { count, message, onClick, intl } = this.props; const classes = classNames('timeline-queue-header', { 'hidden': (count <= 0), }); return (
); } }