mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-19 17:39:39 +00:00
20 lines
371 B
JavaScript
20 lines
371 B
JavaScript
|
import React from 'react';
|
||
|
|
||
|
import '../../css/svg-file-view.css';
|
||
|
|
||
|
const {
|
||
|
fileName, rawPath
|
||
|
} = window.app.pageOptions;
|
||
|
|
||
|
class FileContent extends React.Component {
|
||
|
render() {
|
||
|
return (
|
||
|
<div className="file-view-content flex-1 svg-file-view">
|
||
|
<img src={rawPath} alt={fileName} id="svg-view" />
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default FileContent;
|