department-of-veterans-affairs/vets-website

View on GitHub
src/applications/claims-status/components/appeals-v2/NextEvent.jsx

Summary

Maintainability
A
50 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';

const NextEvent = ({ description, showSeparator, title }) => (
  <li className="next-event">
    <h3>{title}</h3>
    <div>{description}</div>
    {showSeparator && <span className="sidelines">or</span>}
  </li>
);

NextEvent.propTypes = {
  description: PropTypes.element.isRequired,
  showSeparator: PropTypes.bool.isRequired,
  title: PropTypes.string.isRequired,
};

export default NextEvent;