<commit_before>import React from 'react';
import './status-counter.scss';

export default (props) => (
  <div className="status-counter">
      <ul>
          <li>
              <span className="count">{props.postTotals.pending_count}</span>
              <span className="status">Pending</span>
              <div>
                <a className="button -secondary" href={`/campaigns/${props.campaign.id}/inbox`}>Review</a>
              </div>
          </li>
          {/* @TODO - add back in when we deal with pagination on the single campaign view
          <li>
              <span className="status">Accepted</span>
              <span className="count">{props.postTotals.accepted_count}</span>
          </li>
          <li>
              <span className="status">Rejected</span>
              <span className="count">{props.postTotals.rejected_count}</span>
          </li>*/}
      </ul>
  </div>
);
<commit_msg>Add proptype validation to StatusCounter component<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import './status-counter.scss';

const StatusCounter = props => (
  <div className="status-counter">
    <ul>
      <li>
        <span className="count">{props.postTotals.pending_count}</span>
        <span className="status">Pending</span>
        <div>
          <a className="button -secondary" href={`/campaigns/${props.campaign.id}/inbox`}>Review</a>
        </div>
      </li>
      {/* @TODO - add back in when we deal with pagination on the single campaign view
        <li>
          <span className="status">Accepted</span>
          <span className="count">{props.postTotals.accepted_count}</span>
        </li>
        <li>
          <span className="status">Rejected</span>
          <span className="count">{props.postTotals.rejected_count}</span>
        </li>
      */}
    </ul>
  </div>
);


StatusCounter.propTypes = {
  postTotals: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
  campaign: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types
};
{'fraction_non_alphanumeric': 0.15392061955469508, 'fraction_numerical': 0.0, 'mean_word_length': 2.4565217391304346, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3625925', 'n_tokens_mistral': 618, 'n_tokens_neox': 609, 'n_words': 122}