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