mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-19 17:39:39 +00:00
23 lines
475 B
JavaScript
23 lines
475 B
JavaScript
import React, { Fragment } from 'react';
|
|
import GeneralToolBar from './toolbar/general-toolbar';
|
|
|
|
const MainContentWrapper = (WrapperedComponent) => {
|
|
return class Wrapper extends React.Component {
|
|
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Fragment>
|
|
<GeneralToolBar {...this.props} />
|
|
<WrapperedComponent {...this.props} />
|
|
</Fragment>
|
|
);
|
|
}
|
|
};
|
|
};
|
|
|
|
export default MainContentWrapper;
|