MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/EmptyListAlert/EmptyListAlert.jsx

Summary

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

const EmptyListAlert = ({ textLineOne, textLineTwo }) => (
  <div className="usa-grid-full empty-list-alert">
    <p>{textLineOne}</p>
    <p>{textLineTwo}</p>
  </div>
);

EmptyListAlert.propTypes = {
  textLineOne: PropTypes.node.isRequired,
  textLineTwo: PropTypes.node,
};

EmptyListAlert.defaultProps = {
  textLineTwo: '',
};

export default EmptyListAlert;