import React from 'react'; import { createRoot } from 'react-dom/client'; import SharedFileView from './components/shared-file-view/shared-file-view'; import SharedFileViewTip from './components/shared-file-view/shared-file-view-tip'; const { err } = window.shared.pageOptions; class SharedFileViewImage extends React.Component { render() { return } />; } } class FileContent extends React.Component { render() { if (err) { return ; } } } const root = createRoot(document.getElementById('wrapper')); root.render();