import React from 'react'; import PropTypes from 'prop-types'; const AggregateStatus = ({ statuses, chartFilter }) => (

chartFilter('success')} > {statuses.success} chartFilter('failed')} > {statuses.failed} chartFilter('pending')} > {statuses.pending} chartFilter('cancelled')} > {statuses.cancelled}

); AggregateStatus.propTypes = { statuses: PropTypes.shape({ cancelled: PropTypes.number, failed: PropTypes.number, pending: PropTypes.number, success: PropTypes.number, }).isRequired, chartFilter: PropTypes.func.isRequired, }; export default AggregateStatus;