MetaPhase-Consulting/State-TalentMAP

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

Summary

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

const Eligible = ({ shortName, ...props }) => {
  const text = shortName ? 'HTF' : 'Eligible';
  return (
    <Ribbon icon="line-chart" text={text} type="htf" {...props} />
  );
};

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

Eligible.defaultProps = {
  shortName: false,
};

export default Eligible;