text: import React from "react";
  import PropTypes from "prop-types";
  import Moment from "react-moment";
  
  const ProfileEducation = ({
    education: { school, degree, fieldofstudy, current, to, from, description }
  }) => <div>
      <h3 className="text-dark">{school}</h3>
      <p>
          <Moment format='YYYY/MM/DD'>{from}</Moment> - {!to ? ' Now' : <Moment format='YYYY/MM/DD'>{to}</Moment>}
      </p>
      <p>
          <strong>Degree Received: </strong> {degree}
      </p>
      <p>
          <strong>Description: </strong> {description}
      </p>
      <p>
          <strong>Field of study: </strong> {fieldofstudy}
      </p>
  </div>
  
  ProfileEducation.propTypes = {
      education: PropTypes.array.isRequired,
  };
  
  export default ProfileEducation;