17 lines
266 B
JavaScript
17 lines
266 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
source: string,
|
|
};
|
|
|
|
function ImageViewer(props: Props) {
|
|
const { source } = props;
|
|
return (
|
|
<div className="file-render__viewer">
|
|
<img src={source} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default ImageViewer;
|