import * as React from 'react'
import {Button, Drawer, Space, Spin} from 'antd'
import {ReadOutlined, DownloadOutlined, CloseOutlined} from '@ant-design/icons'
import {CommonFilePath} from "../../tmpl/interface";
import HCService from "../../tmpl/hcservice-v3";
import loadable from '@loadable/component';
const Loading =
const FileViewer = loadable(() =>
import('react-file-viewer'), {fallback: Loading});
interface NewinFileViewProps {
filePath: CommonFilePath,
title?: string,
serverKey?: string,
downloadable?: boolean,
};
interface NewinFileViewState {
};
export default class DrawerFileView extends React.PureComponent {
static defaultProps = {
downloadable: false,
}
render() {
const {filePath, downloadable, serverKey, title} = this.props;
// @ts-ignore
return
{downloadable ? : null}
;
}
}