'use client'; import DocViewer from '@cyntler/react-doc-viewer'; import { css, cx } from 'antd-style'; import { CSSProperties, memo } from 'react'; import { FileListItem } from '@/types/files'; import NotSupport from './NotSupport'; import { FileViewRenderers } from './Renderer'; import PDFRenderer from './Renderer/PDF'; const container = css` background: transparent !important; #proxy-renderer { height: 100%; } `; interface FileViewerProps extends FileListItem { className?: string; style?: CSSProperties; } const FileViewer = memo(({ id, style, fileType, url, name }) => { if (fileType?.toLowerCase() === 'pdf' || name?.toLowerCase().endsWith('.pdf')) { return ; } console.log(url,fileType,'72727277--------11111') return ( ); }); export default FileViewer;