import React from 'react'; import PropTypes from 'prop-types'; import watermark from 'watermark-dom'; import { gettext, siteName } from '../../utils/constants'; import Download from './download'; import '../../css/file-view.css'; const propTypes = { content: PropTypes.object.isRequired }; const { fromTrash, fileName, commitTime, canDownloadFile, enableWatermark, userNickName } = window.app.pageOptions; class FileView extends React.Component { constructor(props) { super(props); } render() { return (
{fromTrash ? `${gettext('Current Path: ')}${gettext('Trash')}`: commitTime}