import React from 'react';
import PropTypes from 'prop-types';

const InfoItem = props => {
  const { label = '', content = '' } = props;
  return (
    <p className="info-item">
      {label}：{content}
    </p>
  );
};

InfoItem.propTypes = {
  label: PropTypes.string,
  content: PropTypes.string
};

export default InfoItem;
