18 lines
266 B
React
18 lines
266 B
React
|
// @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;
|