import startCase from 'lodash/startCase';
export default function getStateGovernorStatus(fips, contestId, incumbents, results) {
  const incumbentValue = `seated${startCase(incumbents[fips])}`;
  const stateResults = results[contestId];
  if (!contestId || !stateResults) {
    return incumbentValue;
  }
  const {
    contestStatus
  } = stateResults;
  if (contestStatus.winningParty) {
    return `called${startCase(contestStatus.winningParty)}`;
  }
  return 'notCalled';
}