import { FormattedMessage } from 'react-intl' import classNames from 'classnames' import { shortNumberFormat } from '../utils/numbers' import Button from './button' import Text from './text' export default class TimelineQueueButtonHeader extends PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, count: PropTypes.number, itemType: PropTypes.string, floating: PropTypes.bool } static defaultProps = { count: 0, itemType: 'item', } render () { const { count, itemType, onClick } = this.props const hasItems = count > 0 // : todo : const classes = classNames('timeline-queue-header', { 'timeline-queue-header--extended': hasItems, }) return (
) } }