All files / src/components/ProductionStatus index.jsx

100% Statements 5/5
50% Branches 1/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21          3x 4x 4x 4x     3x                  
import React from 'react';
import pure from 'recompose/pure';
import ColourLabel from 'components/ColourLabel';
import PropTypes from 'prop-types';
 
const ProductionStatus = (props) => {
  const { status, initial, highlighted } = props;
  const colour = highlighted === true ? '#0087e6' : '#c8c8c8';
  return <ColourLabel text={status} initial={initial} colour={colour} />;
};
 
ProductionStatus.propTypes = {
  className: PropTypes.string,
  status: PropTypes.string,
  initial: PropTypes.string,
  highlighted: PropTypes.bool,
  unbreakable: PropTypes.bool,
};
 
export default pure(ProductionStatus);