]> git.somenet.org - pub/jan/aic18.git/blob - service-website/src/components/PdfReport.js
Map port for website service in docker-compose file
[pub/jan/aic18.git] / service-website / src / components / PdfReport.js
1 import React from "react";
2 import PropTypes from "prop-types";
3
4 const PdfReport = ({pdfLink}) => {
5     if (pdfLink) {
6         return (
7             <div className="pdf-report">
8                 <a href={pdfLink} target="_blank" rel="noopener noreferrer">Download PDF report</a>
9             </div>
10         );
11     } else {
12         return null;
13     }
14 };
15
16 PdfReport.propTypes = {
17     pdfLink: PropTypes.string,
18 };
19
20 export default PdfReport;