Files
pdfer/webapp/views/components/Preview.js
Thomas Ruoff da027191d6 further work
2017-02-19 23:27:53 +01:00

26 lines
480 B
JavaScript

import { Component, h } from 'preact';
export default props => {
if (props.pdfIsLoading) {
return (
<div>Lade...</div>
);
}
if (props.pdfError) {
return (
<div>{props.pdfError}</div>
);
}
if (!props.pdfUrl) {
return (
<div>Knopf drücken dann gibts hier was zu sehen!</div>
);
}
return (
<embed src={props.pdfUrl} width="600px" height="1000px"/>
);
};