MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/Ribbon/IsHardToFill/IsHardToFill.jsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import PropTypes from 'prop-types';
import Ribbon from '../Ribbon';

const IsHardToFill = ({ shortName, ...props }) => {
  const text = shortName ? 'HTF' : 'Hard to Fill';
  return (
    <Ribbon icon="star-half-o" text={text} type="htf" {...props} />
  );
};

IsHardToFill.propTypes = {
  shortName: PropTypes.bool,
};

IsHardToFill.defaultProps = {
  shortName: false,
};

export default IsHardToFill;