department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-secure-messaging/components/MessageThread/MessageThreadAttachments.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import AttachmentsList from '../AttachmentsList';
import HorizontalRule from '../shared/HorizontalRule';

const MessageThreadAttachments = props => {
  return (
    !!props.attachments && (
      <div className="message-thread-attachments">
        <HorizontalRule />
        <AttachmentsList
          attachments={props.attachments}
          forPrint={props.forPrint}
          attachmentScanError={false}
        />
      </div>
    )
  );
};

MessageThreadAttachments.propTypes = {
  attachments: PropTypes.array,
  forPrint: PropTypes.bool,
};

export default MessageThreadAttachments;